refactor: 重构异常处理

This commit is contained in:
张传龙
2022-06-17 22:44:32 +08:00
parent f0b6ce7d20
commit ae43ffb94f
6 changed files with 67 additions and 71 deletions

View File

@@ -8,7 +8,6 @@
</template>
<script setup>
import { router } from '@/router'
import { useUserStore } from '@/store/modules/user'
import { IconExit } from '@/components/AppIcons'
import { renderIcon } from '@/utils/icon'
@@ -32,7 +31,6 @@ function handleSelect(key) {
confirm() {
userStore.logout()
$message.success('已退出登录')
router.push({ path: '/login' })
},
})
}