1
0
mirror of https://github.com/zclzone/vue-naive-admin.git synced 2026-01-22 23:50:22 +08:00

style: lint

This commit is contained in:
zclzone
2024-06-06 18:05:36 +08:00
parent 98f9d5893a
commit a67510fe34
72 changed files with 542 additions and 389 deletions

View File

@@ -24,7 +24,9 @@
<template #footer>
<div class="flex">
<n-button class="flex-1" size="large" @click="logout()">退出登录</n-button>
<n-button class="flex-1" size="large" @click="logout()">
退出登录
</n-button>
<n-button
:loading="okLoading"
class="ml-20 flex-1"
@@ -44,7 +46,7 @@
import api from '@/api'
import { MeModal } from '@/components'
import { useModal } from '@/composables'
import { useUserStore, useAuthStore } from '@/store'
import { useAuthStore, useUserStore } from '@/store'
const userStore = useUserStore()
const authStore = useAuthStore()
@@ -67,7 +69,8 @@ async function setCurrentRole() {
okLoading.value = false
$message.success('切换成功')
modalRef.value?.handleOk()
} catch (error) {
}
catch (error) {
console.error(error)
okLoading.value = false
return false