sso优化

This commit is contained in:
biss committed 2026-08-03 20:30:32 +08:00
1 parent 5ec62a03ca
commit 6735a6d3fc
14 files changed
+540 -30

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "web",
"private": true,
"version": "2.2.0-rc1",
"version": "2.3.0-rc1",
"type": "module",
"scripts": {
"dev": "vite",
+2
View File
@@ -263,6 +263,7 @@ const workspaceLabel = computed(() => {
})
const pageTitle = computed(() => {
if (route.path === '/account') return '个人账户'
const matchedItem = navigationGroups.value
.flatMap((group) => group.items)
.find((item) => item.path === route.path)
@@ -318,6 +319,7 @@ onMounted(() => {
<b>{{ auth.user?.displayName ?? '系统管理员' }}</b>
<span>{{ auth.user?.roles?.[0] ?? '教务人员' }}</span>
</div>
<el-button text @click="router.push('/account')">个人账户</el-button>
<el-button text @click="signOut">退出</el-button>
</div>
</div>
+5
View File
@@ -53,6 +53,11 @@ const router = createRouter({
name: 'dashboard',
component: () => import('../views/DashboardView.vue'),
},
{
path: 'account',
name: 'account',
component: () => import('../views/AccountView.vue'),
},
{
path: 'base-data',
redirect: '/base-data/organization',
Loaded 3 of 14 files, more files were not shown because too many files have changed in this diff. Show more