Browse Source

fix message

yujinwen 2 months ago
parent
commit
0285d18670
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/views/AutoLogin.vue

+ 1 - 2
src/views/AutoLogin.vue

@@ -1,7 +1,6 @@
 <script setup>
 import {apiSystemCommon} from '@/api/system'
 import { useRoute, useRouter } from 'vue-router'
-import { MessagePlugin } from 'tdesign-vue-next';
 
 const route=useRoute()
 const router=useRouter()
@@ -12,7 +11,7 @@ async function handleNavigation(){
     if(res.Ret!==200) return
     const arr=res.Data.List||[]
     if(arr.length===0){
-        MessagePlugin.waring('无任何菜单权限,请联系管理员')
+        MessagePlugin.warning('无任何菜单权限,请联系管理员')
         return
     }
     const path=arr[0].children[0].path