feat: 修改密码静态路由目录调整
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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'
|
||||||
}
|
}
|
||||||
|
|||||||
11
src/views/static/index.vue
Normal file
11
src/views/static/index.vue
Normal 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>
|
||||||
Reference in New Issue
Block a user