添加系统设置跳转功能

This commit is contained in:
bakaECC 2025-12-10 16:28:04 +08:00
parent 4654e4c5ec
commit 08a1e5d6cb

View File

@ -58,10 +58,8 @@
</div>
<template #dropdown>
<el-dropdown-menu>
<el-dropdown-item>{{ $t('topbar.center') }}</el-dropdown-item>
<el-dropdown-item>{{ $t('topbar.password') }}</el-dropdown-item>
<lock-modal />
<el-dropdown-item @click="logout">
<el-dropdown-item @click="goSettings">系统设置</el-dropdown-item>
<el-dropdown-item divided @click="logout">
{{ $t('topbar.logout') }}
</el-dropdown-item>
</el-dropdown-menu>
@ -84,6 +82,11 @@ export default defineComponent({
const { userinfo } = useUserinfo()
const goSettings = () => {
// vue-admin
router.push('/')
}
// 退
const logout = () => {
// token
@ -93,6 +96,7 @@ export default defineComponent({
return {
userinfo,
goSettings,
logout,
}
},