diff --git a/src/main.js b/src/main.js
index 43189fb9..e47e1ace 100755
--- a/src/main.js
+++ b/src/main.js
@@ -92,19 +92,24 @@ new Vue({
* 处理路由 得到每一级的路由设置
*/
getAllTagFromRoutes () {
+ // 所有加载在主框架内的页面
const tagPool = []
+ // 所有需要被缓存的页面组件 name
+ const pageUseCacheList = []
const push = function (routes) {
routes.forEach(route => {
if (route.children) {
push(route.children)
} else {
+ console.log('alive', route.meta.alive)
tagPool.push(route)
}
})
}
push(frameInRoutes)
- this.$store.commit('d2admintagPoolSet', tagPool)
- // d2adminPageUseCacheList
+ console.log('tagPool', tagPool)
+ this.$store.commit('d2adminTagPoolSet', tagPool)
+ this.$store.commit('d2adminPageUseCacheListSet', pageUseCacheList)
}
}
})
diff --git a/src/menu/index.js.REMOVED.git-id b/src/menu/index.js.REMOVED.git-id
index b1c5f226..a8f0a8fb 100644
--- a/src/menu/index.js.REMOVED.git-id
+++ b/src/menu/index.js.REMOVED.git-id
@@ -1 +1 @@
-7562f0a732bab9f663056b29032ad38a3cfcae86
\ No newline at end of file
+a741ca1e629d094296537193224186be0fe27007
\ No newline at end of file
diff --git a/src/pages/demo/playground/page-cache/index.vue b/src/pages/demo/playground/page-cache/index.vue
new file mode 100644
index 00000000..153f7817
--- /dev/null
+++ b/src/pages/demo/playground/page-cache/index.vue
@@ -0,0 +1,17 @@
+
+
+ page-name
+
+
+
+
diff --git a/src/router/routes.js.REMOVED.git-id b/src/router/routes.js.REMOVED.git-id
index d11962f2..b3e92774 100644
--- a/src/router/routes.js.REMOVED.git-id
+++ b/src/router/routes.js.REMOVED.git-id
@@ -1 +1 @@
-bd6085cdedc8b795441980caba311c098d002f0d
\ No newline at end of file
+e5b63ace9e1672fcf1badc8cbb5889e21060b67f
\ No newline at end of file
diff --git a/src/store/modules/d2admin.js b/src/store/modules/d2admin.js
index ea1d6d4d..6dbb95a4 100644
--- a/src/store/modules/d2admin.js
+++ b/src/store/modules/d2admin.js
@@ -66,7 +66,7 @@ export default {
* @param {state} state vuex state
* @param {Array} tagPool tags
*/
- d2admintagPoolSet (state, tagPool) {
+ d2adminTagPoolSet (state, tagPool) {
state.tagPool = tagPool
},
/**
@@ -91,7 +91,6 @@ export default {
value: state.pageOpenedList
}).write()
}
- console.log('d2adminTagIncreate')
},
/**
* 切换全屏