修复前端打包问题

提取基础接口为配置
This commit is contained in:
xiaowang
2026-03-10 23:23:15 +08:00
parent 191c558049
commit 580a89c64d
27 changed files with 257 additions and 222 deletions
+6 -4
View File
@@ -97,7 +97,8 @@ import {
TeamOutlined
} from '@ant-design/icons-vue'
import { message, Modal } from 'ant-design-vue'
import { userApi, type UserVO, adminAuthApi } from '@/api/admin'
import { userApi, type UserVO } from '@/api/admin'
import { authApi } from '@/api/auth'
import { DEFAULT_AVATAR } from '@/constants'
import { usePermission } from '@/utils/permission'
@@ -190,8 +191,8 @@ const toggleCollapsed = () => {
collapsed.value = !collapsed.value
}
const handleMenuClick = ({ key }: { key: string }) => {
router.push(key)
const handleMenuClick = (info: any) => {
router.push(info.key)
}
const goToProfile = () => {
@@ -204,7 +205,8 @@ const handleLogout = () => {
content: '确定要退出登录吗?',
onOk: async () => {
try {
await adminAuthApi.logout()
// 尝试调用登出API
await authApi.logout()
} catch (error) {
console.error('登出失败:', error)
} finally {