新增 隐私政策 用户协议 页面

This commit is contained in:
GGJ
2024-03-18 09:12:43 +08:00
parent 4be2b5b2cd
commit 58937f0b87
4 changed files with 145 additions and 3 deletions

View File

@@ -36,7 +36,7 @@ const staticRoutes: Array<RouteRecordRaw> = [
adminBaseRoute,
{
path: '/',
redirect: (to) => {
redirect: to => {
return {
name: 'adminMainLoading'
}
@@ -56,7 +56,14 @@ const staticRoutes: Array<RouteRecordRaw> = [
redirect: '/404'
},
{
// 404
path: '/:path(.*)*',
redirect: '/policy'
},
{
path: '/:path(.*)*',
redirect: '/agreement'
},
{
path: '/404',
name: 'notFound',
component: () => import('@/views/common/error/404.vue'),
@@ -64,10 +71,28 @@ const staticRoutes: Array<RouteRecordRaw> = [
title: pageTitle('notFound') // 页面不存在
}
},
{
// 隐私政策
path: '/policy',
name: 'policy',
component: () => import('@/views/common/policy/index.vue'),
meta: {
title: pageTitle('policy') // 页面不存在
}
},
{
// 用户协议
path: '/agreement',
name: 'agreement',
component: () => import('@/views/common/agreement/index.vue'),
meta: {
title: pageTitle('agreement') // 页面不存在
}
},
{
// 后台找不到页面了-可能是路由未加载上
path: adminBaseRoutePath + ':path(.*)*',
redirect: (to) => {
redirect: to => {
return {
name: 'adminMainLoading',
params: {