feat: 修改密码静态路由目录调整
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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'
|
||||
}
|
||||
|
||||
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