From 2ab05fcf16c5680a197def16c29942eed7fa71a5 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Fri, 18 Jul 2025 16:26:37 +0800
Subject: [PATCH] feat: 跳后台无效
---
src/permission.js | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/src/permission.js b/src/permission.js
index c91ba32..4db5ed8 100644
--- a/src/permission.js
+++ b/src/permission.js
@@ -47,9 +47,8 @@
store.commit('SET_IS_MENU', isMenu === undefined)
const menuAll = getStore({ name: 'menuAll' })
-
if (getToken()) {
- if (!menuAll) {
+ if (!menuAll?.length) {
store.dispatch('GetMenu').then(data => {
if (data.length !== 0) {
router.$avueRouter.formatRoutes(data, true)
--
Gitblit v1.9.3