实现history页面缓存
This commit is contained in:
@@ -67,8 +67,8 @@ const routes: Array<RouteRecordRaw> = [
|
||||
children: [
|
||||
{
|
||||
path: "tools",
|
||||
name: "tools",
|
||||
meta: { enter: "all" },
|
||||
name: "toolsPage",
|
||||
meta: { enter: "all",cache:true },
|
||||
component: () => import("@/views/HomeView/Tools.vue"),
|
||||
},
|
||||
// {
|
||||
@@ -88,6 +88,18 @@ const routes: Array<RouteRecordRaw> = [
|
||||
name: "history",
|
||||
meta: { enter: "all" },
|
||||
component: () => import("@/views/HomeView/history.vue"),
|
||||
},
|
||||
// {
|
||||
// path: "history/:type/:id",
|
||||
// name: "toolsPage",
|
||||
// meta: { enter: "all",cache:true },
|
||||
// component: () => import("@/views/HomeView/Tools.vue"),
|
||||
// },
|
||||
{
|
||||
path: "history/:id",
|
||||
name: "designPage",
|
||||
meta: { enter: "all",cache:true },
|
||||
component: () => import("@/component/home/design/index.vue"),
|
||||
},
|
||||
{
|
||||
path: "works",
|
||||
|
||||
Reference in New Issue
Block a user