From 13e400659297e4ace701d56a03bea3c9e6f1ac21 Mon Sep 17 00:00:00 2001 From: coward Date: Mon, 23 Sep 2024 17:17:29 +0800 Subject: [PATCH] =?UTF-8?q?:art:=E5=8A=A0=E4=BA=86=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E6=95=B0=E6=8D=AE=E7=9B=91=E5=90=AC=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/package.json | 1 + web/pnpm-lock.yaml | 8 +++++++ .../components/header/components/Export.vue | 12 ++++++++++ .../header/components/UserAvatar.vue | 6 +++++ web/src/main.js | 4 ++++ web/src/utils/event/event.js | 7 ++++++ web/src/utils/event/index.js | 1 + web/src/utils/index.js | 1 + web/src/views/client/index.vue | 10 ++++++++ web/src/views/setting/index.vue | 23 +++++++++++++++++++ web/src/views/user/index.vue | 9 ++++++++ 11 files changed, 82 insertions(+) create mode 100644 web/src/utils/event/event.js create mode 100644 web/src/utils/event/index.js diff --git a/web/package.json b/web/package.json index 1c90319..ba96b25 100644 --- a/web/package.json +++ b/web/package.json @@ -41,6 +41,7 @@ "echarts": "^5.4.3", "lodash-es": "^4.17.21", "md-editor-v3": "^4.7.0", + "mitt": "^3.0.1", "mockjs": "^1.1.0", "pinia": "^2.1.6", "vite": "^4.4.11", diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yaml index bebf0f7..2bd2ac1 100644 --- a/web/pnpm-lock.yaml +++ b/web/pnpm-lock.yaml @@ -38,6 +38,9 @@ importers: md-editor-v3: specifier: ^4.7.0 version: 4.7.0(@codemirror/state@6.2.1)(@codemirror/view@6.21.3)(@lezer/common@1.1.0)(vue@3.3.4) + mitt: + specifier: ^3.0.1 + version: 3.0.1 mockjs: specifier: ^1.1.0 version: 1.1.0 @@ -3014,6 +3017,9 @@ packages: minimist@1.2.8: resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} + mitt@3.0.1: + resolution: {integrity: sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==} + mixin-deep@1.3.2: resolution: {integrity: sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==} engines: {node: '>=0.10.0'} @@ -7599,6 +7605,8 @@ snapshots: minimist@1.2.8: {} + mitt@3.0.1: {} + mixin-deep@1.3.2: dependencies: for-in: 1.0.2 diff --git a/web/src/layout/components/header/components/Export.vue b/web/src/layout/components/header/components/Export.vue index b65e848..b827457 100644 --- a/web/src/layout/components/header/components/Export.vue +++ b/web/src/layout/components/header/components/Export.vue @@ -47,6 +47,10 @@ \ No newline at end of file