feat: 页面缓存

This commit is contained in:
zhangyh
2025-10-21 11:21:15 +08:00
parent d25881d103
commit f5788b7235
10 changed files with 976 additions and 116 deletions

View File

@@ -25,7 +25,7 @@ const router = createRouter({
{
path: '/stylist',
name: 'StylistPage',
redirect:'/stylist/index',
redirect: '/stylist/index',
component: () => import('@/views/stylist/container.vue'),
children: [
{
@@ -53,7 +53,8 @@ const router = createRouter({
{
path: '/asistant',
name: 'asistant',
component: () => import('../views/asistant/index.vue')
component: () => import('../views/asistant/index.vue'),
meta: { cache: true }
},
{
path: '/workshop',
@@ -61,8 +62,8 @@ const router = createRouter({
component: () => import('../views/Workshop/index.vue'),
children: [
{
path: '/workshop',
redirect: "/workshop/selectStyle",
path: '/workshop',
redirect: '/workshop/selectStyle'
},
{
path: '/workshop/selectStyle',
@@ -95,20 +96,20 @@ const router = createRouter({
// 自定义创作
path: '/workshop/customize',
name: 'customize',
component: () => import('../views/Workshop/customize.vue'),
component: () => import('../views/Workshop/customize.vue')
},
{
// library
path: '/workshop/library',
name: 'library',
component: () => import('../views/Workshop/library.vue'),
name: 'library',
component: () => import('../views/Workshop/library.vue')
},
{
// creation
path: '/workshop/creation',
name: 'creation',
component: () => import('../views/Workshop/creation/index.vue')
},
{
// creation
path: '/workshop/creation',
name: 'creation',
component: () => import('../views/Workshop/creation/index.vue'),
},
{
// 完成创建
path: '/workshop/end',