feat: setting页面

This commit is contained in:
2026-04-22 10:43:40 +08:00
parent 7b4acaa001
commit 38094c4b2c
2 changed files with 834 additions and 405 deletions

View File

@@ -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