From adbda89c97b2bc91b0bcf295e76053b62afdc238 Mon Sep 17 00:00:00 2001
From: bqy_fe <1743369777@qq.com>
Date: Mon, 28 Mar 2022 23:02:10 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E5=BD=93=E5=89=8D=E7=94=A8=E6=88=B7?=
=?UTF-8?q?=E8=A7=92=E8=89=B2=E6=9D=83=E9=99=90=E5=8F=98=E6=9B=B4=E6=97=B6?=
=?UTF-8?q?=E5=AE=9E=E6=97=B6=E6=9B=B4=E6=96=B0=E6=9D=83=E9=99=90=E8=8F=9C?=
=?UTF-8?q?=E5=8D=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
package.json | 25 ++-
src/core/socket/event-type.ts | 5 +-
src/layout/header/index.vue | 5 +-
src/layout/tabs/tabs-view.vue | 20 +-
src/store/modules/tabsView.ts | 25 ++-
src/store/modules/user.ts | 14 +-
src/store/modules/ws.ts | 24 ++-
src/views/demos/form/dynamic-form/index.vue | 6 +-
src/views/demos/form/rule-form/index.vue | 6 +-
src/views/demos/form/use-form/index.vue | 6 +-
yarn.lock | 204 ++++++++++----------
11 files changed, 178 insertions(+), 162 deletions(-)
diff --git a/package.json b/package.json
index dbe4ff267..51a574855 100644
--- a/package.json
+++ b/package.json
@@ -29,7 +29,7 @@
},
"dependencies": {
"@ant-design/icons-vue": "^6.1.0",
- "@vueuse/core": "^8.1.2",
+ "@vueuse/core": "^8.2.0",
"ant-design-vue": "3.1.0-rc.2",
"axios": "^0.26.1",
"core-js": "^3.21.1",
@@ -47,28 +47,27 @@
"vue-i18n": "9.2.0-beta.30",
"vue-router": "^4.0.14",
"vue-types": "^4.1.1",
- "xlsx": "^0.18.4"
+ "xlsx": "^0.18.5"
},
"devDependencies": {
"@commitlint/cli": "^16.2.3",
"@commitlint/config-conventional": "^16.2.1",
"@types/lodash-es": "^4.17.6",
- "@types/node": "^17.0.22",
+ "@types/node": "^17.0.23",
"@types/webpack-env": "^1.16.3",
"@typescript-eslint/eslint-plugin": "^5.16.0",
"@typescript-eslint/parser": "^5.16.0",
- "@vue/cli-plugin-babel": "^5.0.3",
- "@vue/cli-plugin-eslint": "^5.0.3",
- "@vue/cli-plugin-router": "^5.0.3",
- "@vue/cli-plugin-typescript": "^5.0.3",
- "@vue/cli-plugin-vuex": "^5.0.3",
- "@vue/cli-service": "^5.0.3",
+ "@vue/cli-plugin-babel": "^5.0.4",
+ "@vue/cli-plugin-eslint": "^5.0.4",
+ "@vue/cli-plugin-router": "^5.0.4",
+ "@vue/cli-plugin-typescript": "^5.0.4",
+ "@vue/cli-service": "^5.0.4",
"@vue/eslint-config-typescript": "^10.0.0",
"babel-plugin-import": "^1.13.3",
"commitizen": "^4.2.4",
"compression-webpack-plugin": "^9.2.0",
"conventional-changelog-cli": "^2.2.2",
- "eslint": "^8.11.0",
+ "eslint": "^8.12.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "2.25.4",
"eslint-plugin-prettier": "^4.0.0",
@@ -79,16 +78,16 @@
"lint-staged": "^12.3.7",
"path-browserify": "^1.0.1",
"postcss-html": "^1.3.0",
- "prettier": "^2.6.0",
+ "prettier": "^2.6.1",
"regenerator-runtime": "^0.13.9",
- "stylelint": "^14.6.0",
+ "stylelint": "^14.6.1",
"stylelint-config-html": "^1.0.0",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-recommended": "^7.0.0",
"stylelint-config-standard": "^25.0.0",
"stylelint-order": "^5.0.0",
"svg-sprite-loader": "^6.0.11",
- "typescript": "^4.6.2",
+ "typescript": "^4.6.3",
"unplugin-vue-define-options": "^0.5.0",
"vue-cli-plugin-windicss": "^1.1.3",
"vue-eslint-parser": "^8.3.0"
diff --git a/src/core/socket/event-type.ts b/src/core/socket/event-type.ts
index 05e85f159..11a7ad3b7 100644
--- a/src/core/socket/event-type.ts
+++ b/src/core/socket/event-type.ts
@@ -2,5 +2,8 @@
* Socket事件名定义
*/
-// 强制踢下线
+/** 强制踢下线 */
export const EVENT_KICK = 'kick';
+
+/** 当前用户的角色权限或所拥有的菜单信息被更新时 重新获取最新的权限菜单 */
+export const EVENT_UPDATE_MENU = 'update_menu';
diff --git a/src/layout/header/index.vue b/src/layout/header/index.vue
index 4bca4adf4..96f9d4c05 100644
--- a/src/layout/header/index.vue
+++ b/src/layout/header/index.vue
@@ -5,7 +5,7 @@
-
+
@@ -58,7 +58,7 @@