feat: setting页面
This commit is contained in:
@@ -7,8 +7,6 @@ import { createRouter, createWebHistory } from 'vue-router'
|
|||||||
* 3. 路由的name默认是文件名,如果文件名与name不一致,通过defineOptions({ name: 'componentName' })来设置
|
* 3. 路由的name默认是文件名,如果文件名与name不一致,通过defineOptions({ name: 'componentName' })来设置
|
||||||
*/
|
*/
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
history: createWebHistory('/'),
|
|
||||||
// history: createWebHistory(import.meta.env.VITE_APP_URL),
|
|
||||||
routes: [
|
routes: [
|
||||||
{
|
{
|
||||||
path: '/',
|
path: '/',
|
||||||
@@ -19,15 +17,11 @@ const router = createRouter({
|
|||||||
path: '/collectionStory',
|
path: '/collectionStory',
|
||||||
name: 'collectionStory',
|
name: 'collectionStory',
|
||||||
component: () => import('../views/collectionStory/index.vue')
|
component: () => import('../views/collectionStory/index.vue')
|
||||||
// {
|
},
|
||||||
// path: '/',
|
{
|
||||||
// redirect: '/welcome'
|
path: '/brand',
|
||||||
// },
|
name: 'brand',
|
||||||
// {
|
component: () => import('../views/brand/index.vue')
|
||||||
// path: '/asistant',
|
|
||||||
// name: 'asistant',
|
|
||||||
// component: () => import('../views/asistant/index.vue'),
|
|
||||||
// meta: { cache: true, verify: () => VerifyIDs(2) }
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/settings',
|
path: '/settings',
|
||||||
@@ -40,31 +34,8 @@ const router = createRouter({
|
|||||||
name: '404',
|
name: '404',
|
||||||
component: () => import('../views/404.vue')
|
component: () => import('../views/404.vue')
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
history: createWebHistory('/'),
|
history: createWebHistory('/')
|
||||||
// history: createWebHistory(import.meta.env.VITE_APP_URL),
|
|
||||||
routes: [
|
|
||||||
{
|
|
||||||
path: '/',
|
|
||||||
name: 'home',
|
|
||||||
component: () => import('../views/home/index.vue'),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/collectionStory',
|
|
||||||
name: 'collectionStory',
|
|
||||||
component: () => import('../views/collectionStory/index.vue'),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/brand',
|
|
||||||
name: 'brand',
|
|
||||||
component: () => import('../views/brand/index.vue'),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/:pathMatch(.*)',
|
|
||||||
name: '404',
|
|
||||||
component: () => import('../views/404.vue'),
|
|
||||||
},
|
|
||||||
]
|
|
||||||
})
|
})
|
||||||
|
|
||||||
router.beforeEach((to, from, next) => {
|
router.beforeEach((to, from, next) => {
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user