From 9cd1c8997b1f1ac997d872ab309d8a96b41c093d Mon Sep 17 00:00:00 2001 From: jiangwenbin Date: Tue, 30 Apr 2024 18:09:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=80=80=E5=87=BA=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E6=B8=85=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 3 ++- src/App.vue | 17 ++++++++++---- src/router/index.ts | 1 - src/services/index.ts | 2 ++ src/store/constants.ts | 2 ++ src/store/index.ts | 19 ++++++++++++--- src/utils/eventbus.ts | 8 +++++++ src/views/chatgpt/index.vue | 46 ++++++++++++++++++------------------- yarn.lock | 5 ++++ 9 files changed, 71 insertions(+), 32 deletions(-) create mode 100644 src/utils/eventbus.ts diff --git a/package.json b/package.json index bcc0c56..54e9fce 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue3-ts-blog-frontend", - "version": "1.0.1", + "version": "2.0.2", "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", @@ -35,6 +35,7 @@ "jshashes": "^1.0.8", "lodash-es": "^4.17.21", "marked": "^2.1.3", + "mitt": "^3.0.1", "qs": "^6.10.1", "socket.io-client": "^2.1.1", "vue": "~3.0.11", diff --git a/src/App.vue b/src/App.vue index d77ee03..5b73e6f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -12,22 +12,31 @@