2
0

feat: 修改密码静态路由目录调整

This commit is contained in:
caiyuchao
2025-04-28 23:50:09 +08:00
parent 07ebbf45b1
commit 324ed9d114
4 changed files with 19 additions and 8 deletions

View File

@@ -45,7 +45,7 @@ function logout() {
{{ $t('common.setemail') }}
</div>
</AMenuItem> -->
<AMenuItem @click="router.push('/user-center/resetpwd')">
<AMenuItem @click="router.push('/static/resetpwd')">
<div class="flex-center gap-8px">
{{ $t('common.resetpwd') }}
</div>

View File

@@ -68,21 +68,21 @@ export const generatedRoutes: GeneratedRoute[] = [
}
},
{
name: 'user-center',
path: '/user-center',
name: 'static',
path: '/static',
component: 'layout.base',
meta: {
title: 'user-center',
title: 'static',
hideInMenu: true,
i18nKey: 'route.user-center'
},
children: [
{
name: 'user-center_resetpwd',
path: '/user-center/resetpwd',
component: 'view.user-center_resetpwd',
name: 'static_resetpwd',
path: '/static/resetpwd',
component: 'view.static_resetpwd',
meta: {
title: 'user-center_resetpwd',
title: 'static_resetpwd',
hideInMenu: true,
i18nKey: 'common.resetpwd'
}

View File

@@ -0,0 +1,11 @@
<script setup lang="ts">
import { useAuthStore } from '@/store/modules/auth';
const authStore = useAuthStore();
</script>
<template>
<div>{{ authStore.userInfo.user }}</div>
</template>
<style scoped></style>