fix: open logged-in users on avatar management

This commit is contained in:
stefanfeng
2026-07-24 17:54:02 +08:00
parent cc939b6298
commit 1da5f7f10d
3 changed files with 8 additions and 1 deletions

View File

@@ -43,6 +43,7 @@ const showNav = ref<boolean>(shouldShowNav(route.path))
function shouldShowNav(path: string) {
return path !== '/'
&& path !== '/avatar/create'
&& path !== '/login/sms'
&& !path.startsWith('/avatar/edit')
&& !path.startsWith('/avatar/chat')

View File

@@ -5,6 +5,12 @@ import { getAuthToken } from '@/api'
const routes: RouteRecordRaw[] = [
{
path: '/',
name: 'AvatarHome',
redirect: '/avatar/manage',
meta: { title: '数字分身管理', requiresAuth: true }
},
{
path: '/avatar/create',
name: 'AvatarCreate',
component: () => import('@/views/AvatarCreate.vue'),
meta: { title: '创建数字分身', requiresAuth: true }

View File

@@ -253,7 +253,7 @@ const goToRecharge = () => {
}
const goCreate = () => {
router.push('/')
router.push('/avatar/create')
}
const goToKnowledge = () => {