From 6904546b7da897b06572f72ef98f8a2df7a895cb Mon Sep 17 00:00:00 2001 From: dashan Date: Fri, 10 Feb 2023 00:49:43 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E8=A7=A3=E5=86=B3=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E6=88=96=E5=85=B3=E9=97=AD=E6=97=B6=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E7=AB=AF=E6=B5=8F=E8=A7=88=E5=99=A8=E4=B8=8D=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=E4=BF=9D=E5=AD=98=E8=81=8A=E5=A4=A9=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 22 +++++++++++----------- src/layouts/MainLayout.vue | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 1e720c2..71d5cca 100644 --- a/README.md +++ b/README.md @@ -2,27 +2,27 @@ chatbot web -## Install the dependencies +## 效果展示 +### PC端效果展示 +![](https://raw.githubusercontent.com/DaiShuaishuai/pic/main/picgo/pc1.jpg) +![](https://raw.githubusercontent.com/DaiShuaishuai/pic/main/picgo/pc2.jpg) +### 移动端效果展示 +![](https://raw.githubusercontent.com/DaiShuaishuai/pic/main/picgo/yd1.jpg) +![](https://raw.githubusercontent.com/DaiShuaishuai/pic/main/picgo/yd2.jpg) + +## 下载依赖 ```bash yarn # or npm install ``` -### Start the app in development mode (hot-code reloading, error reporting, etc.) +### 启动项目 ```bash quasar dev ``` - -### Lint the files -```bash -yarn lint -# or -npm run lint -``` - -### Build the app for production +### 打包 ```bash quasar build ``` diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index b9cd963..24ede73 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -86,7 +86,7 @@ export default { this.messages=JSON.parse(records) localStorage.removeItem(bot_message_records) } - window.addEventListener("beforeunload",()=>{ + window.addEventListener("pagehide",()=>{ localStorage.setItem(bot_message_records,JSON.stringify(this.messages)) }) },