优化卡片样式,移除多余的圆角设置,提升组件一致性

This commit is contained in:
jxxghp
2025-04-02 10:44:47 +08:00
parent 62db4508da
commit 88f261584f
11 changed files with 113 additions and 111 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ const currentPath = computed(() => route.path)
:color="moreActiveState ? 'primary' : ''"
/>
<VMenu v-model="moreMenuDialog" close-on-content-click activator="parent">
<VList class="font-bold" lines="one">
<VList class="font-bold" lines="one" elevation="1">
<VListSubheader class="bg-transparent"> 更多 </VListSubheader>
<VListItem
class="pe-20"
+17 -19
View File
@@ -38,26 +38,24 @@ function logout() {
// 执行重启操作
async function restart() {
{
restartDialog.value = false
// 调用API重启
try {
// 显示等待框
progressDialog.value = true
const result: { [key: string]: any } = await api.get('system/restart')
if (!result?.success) {
// 隐藏等待框
progressDialog.value = false
// 重启不成功
$toast.error(result.message)
return
}
} catch (error) {
console.error(error)
restartDialog.value = false
// 调用API重启
try {
// 显示等待框
progressDialog.value = true
const result: { [key: string]: any } = await api.get('system/restart')
if (!result?.success) {
// 隐藏等待框
progressDialog.value = false
// 重启不成功
$toast.error(result.message)
return
}
// 注销
logout()
} catch (error) {
console.error(error)
}
// 注销
logout()
}
// 显示重启确认对话框
@@ -88,7 +86,7 @@ const userLevel = computed(() => userStore.level)
<VImg :src="avatar" />
<VMenu activator="parent" width="230" location="bottom end" offset="14px">
<VList>
<VList elevation="1">
<!-- 👉 User Avatar & Name -->
<VListItem>
<template #prepend>