From 21deb676625eef63caed1caafb2b93cb09e153af Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Mon, 09 Feb 2026 15:57:36 +0800
Subject: [PATCH] feat: 免密登陆

---
 applications/drone-command/src/store/modules/user.js |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/applications/drone-command/src/store/modules/user.js b/applications/drone-command/src/store/modules/user.js
index 181b52d..70af2ea 100644
--- a/applications/drone-command/src/store/modules/user.js
+++ b/applications/drone-command/src/store/modules/user.js
@@ -272,18 +272,18 @@
     GetMenu({ commit, dispatch }, tenantId) {
       const errLogOut = () => {
         dispatch('LogOut').then(()=>{
-          const env = import.meta.env.VITE_APP_ENV
-          const adminUrl = import.meta.env.VITE_APP_DASHBOARD_URL
-          env === 'development'
-            ? window.location.href = "/manage/login"
-            : window.location.replace(`${adminUrl}#/login`)
+					window.location.href = "/drone-command/login"
+          // env === 'development'
+          //   ? window.location.href = "/drone-command/login"
+          //   : window.location.replace(`${adminUrl}#/login`)
         })
       }
       return new Promise(resolve => {
-        getRoutes({tenantId,sysType: 1}).then(res => {
+        getRoutes({tenantId,sysType: 5}).then(res => {
           const data = res.data.data;
           let menu = deepClone(data);
           if (!res.data?.data?.length){
+						ElMessage.warning('当前角色没有配置菜单,请联系管理员配置')
             errLogOut()
             return
           }
@@ -299,7 +299,7 @@
     },
     GetButtons({ commit }) {
       return new Promise(resolve => {
-        getButtons({sysType: 1}).then(res => {
+        getButtons({sysType: 5}).then(res => {
           const data = res.data.data;
           commit('SET_PERMISSION', data);
           resolve();

--
Gitblit v1.9.3