Parcourir la source

fix: 修改bug

bill il y a 2 ans
Parent
commit
9e90e1bc2e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/layout/header.vue

+ 1 - 1
src/layout/header.vue

@@ -46,7 +46,7 @@ const menus = [
 const handlerMenuClick: MenuProps['onClick'] = async e => {
   if (e.key === 'logout') {
     await postLogout()
-    location.replace(mainURL)
+    location.replace(`${mainURL}/`)
   } else {
     location.href = `${mainURL}/#/information`
   }