From 5821664d8e34973ec0e0123228c3591da51cdd2f Mon Sep 17 00:00:00 2001 From: wwl <xchao828@163.com> Date: 星期一, 28 七月 2025 17:38:00 +0800 Subject: [PATCH] 全选问题,动态url --- src/main.js | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.js b/src/main.js index 37508ae..e85e3f5 100644 --- a/src/main.js +++ b/src/main.js @@ -17,7 +17,7 @@ import "./assets/icons"; import "./permission"; import { getDicts } from "@/api/system/dict/data"; -import { getConfigKey, yidu } from "@/api/system/config"; +import { getConfigKey,yidu } from "@/api/system/config"; import { parseTime, resetForm, @@ -97,7 +97,7 @@ }; // 鍏ㄥ眬閫氱煡鏂规硶锛屾坊鍔犫�滃凡璇烩�濇寜閽� -Vue.prototype.$showNotification = function (type, title, message, onClick, noticeId) { + Vue.prototype.$showNotification = function (type, title, message, onClick, noticeId) { console.log('瑙﹀彂閫氱煡:', { type, title, message, noticeId, noticeIdType: typeof noticeId }); // 璋冭瘯锛氳褰� noticeId 鍜岀被鍨� const h = this.$createElement; const notification = this.$notify({ @@ -136,6 +136,7 @@ notificationManager.addNotification(notification); // 娣诲姞鍒伴�氱煡绠$悊 }; + // 鐩戝惉璺敱鍙樺寲 router.afterEach(() => { console.log('璺敱鍒囨崲瀹屾垚锛屽綋鍓嶈矾寰�:', router.currentRoute.path); @@ -149,7 +150,7 @@ router, store, render: (h) => h(App), - mounted() { + mounted() { const token = store.state.user.token || Cookies.get('token') || ''; if (token && !isWebSocketInitialized) { console.log('鍒濆鍖� WebSocket锛孴oken:', token); -- Gitblit v1.8.0