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 @@