소스 검색

fix: 修改bug

bill 2 년 전
부모
커밋
9e90e1bc2e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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`
   }