refactor: 标签页重构,采用响应式storage

This commit is contained in:
xiaoxian521
2021-06-23 14:24:38 +08:00
parent 6a89af382f
commit 8177de106b
10 changed files with 181 additions and 236 deletions

View File

@@ -14,7 +14,7 @@ const nestedRouter = {
},
children: [
{
path: "menu1",
path: "/nested/menu1",
component: () => import("/@/views/nested/menu1/index.vue"),
name: "Menu1",
meta: {
@@ -25,7 +25,7 @@ const nestedRouter = {
redirect: "/nested/menu1/menu1-1",
children: [
{
path: "menu1-1",
path: "/nested/menu1/menu1-1",
component: () => import("/@/views/nested/menu1/menu1-1/index.vue"),
name: "Menu1-1",
meta: {
@@ -35,7 +35,7 @@ const nestedRouter = {
},
},
{
path: "menu1-2",
path: "/nested/menu1/menu1-2",
component: () => import("/@/views/nested/menu1/menu1-2/index.vue"),
name: "Menu1-2",
redirect: "/nested/menu1/menu1-2/menu1-2-1",
@@ -46,7 +46,7 @@ const nestedRouter = {
},
children: [
{
path: "menu1-2-1",
path: "/nested/menu1/menu1-2/menu1-2-1",
component: () =>
import("/@/views/nested/menu1/menu1-2/menu1-2-1/index.vue"),
name: "Menu1-2-1",
@@ -57,7 +57,7 @@ const nestedRouter = {
},
},
{
path: "menu1-2-2",
path: "/nested/menu1/menu1-2/menu1-2-2",
component: () =>
import("/@/views/nested/menu1/menu1-2/menu1-2-2/index.vue"),
name: "Menu1-2-2",
@@ -70,7 +70,7 @@ const nestedRouter = {
],
},
{
path: "menu1-3",
path: "/nested/menu1/menu1-3",
component: () => import("/@/views/nested/menu1/menu1-3/index.vue"),
name: "Menu1-3",
meta: {
@@ -82,7 +82,7 @@ const nestedRouter = {
],
},
{
path: "menu2",
path: "/nested/menu2",
name: "Menu2",
component: () => import("/@/views/nested/menu2/index.vue"),
meta: {