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') }} {{ $t('common.setemail') }}
</div> </div>
</AMenuItem> --> </AMenuItem> -->
<AMenuItem @click="router.push('/user-center/resetpwd')"> <AMenuItem @click="router.push('/static/resetpwd')">
<div class="flex-center gap-8px"> <div class="flex-center gap-8px">
{{ $t('common.resetpwd') }} {{ $t('common.resetpwd') }}
</div> </div>

View File

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