no message

Former-commit-id: f737ab133d503db38c2e2b37f6d1ffbe07106dee [formerly f737ab133d503db38c2e2b37f6d1ffbe07106dee [formerly f737ab133d503db38c2e2b37f6d1ffbe07106dee [formerly f737ab133d503db38c2e2b37f6d1ffbe07106dee [formerly 4f4e526f5ba1eacd4afa5acf9bfd08ec74ca342f [formerly 437bcf303376951edf5fd8a1578f9893d1f4d2b8]]]]]
Former-commit-id: bb014705280c3fc219c70dd429f46caf378c2984
Former-commit-id: fd7f67ae8e8a209062af6529ac9695c995de6804
Former-commit-id: 181b09c3f02078e99c2973dbe46da67d4fe022dd [formerly fe52a459d4ae43c1465e43e5318637f9a003ec19]
Former-commit-id: 2fe301f7401a73a52beb3140d3bceb6a5f86f580
Former-commit-id: 9c6b46ffc2652a7bdb3053eedd49147f9b8cafb9
Former-commit-id: 06d9453842efab0af42a76e6f5aa2d8da25f3346
Former-commit-id: 60a296ea822e09b702c8661371afef29f2d6b454
Former-commit-id: 6129460e4745f7657ee024e217d055186a46bdcb
This commit is contained in:
liyang
2018-07-02 16:10:32 +08:00
parent cd4797fe28
commit d5685a5dfd
3 changed files with 11 additions and 2 deletions

View File

@@ -75,7 +75,7 @@ util.openNewPage = function (vm, name, argu, query) {
})
if (pageOpend) {
// 页面以前打开过 但是新的页面可能 name 一样,参数不一样
vm.$store.commit('d2adminpageOpenedListUpdateItem', { index: pageOpendIndex, argu, query })
vm.$store.commit('d2adminPageOpenedListUpdateItem', { index: pageOpendIndex, argu, query })
} else {
// 页面以前没有打开过
const tagPool = vm.$store.state.d2admin.tagPool

View File

@@ -97,6 +97,7 @@ new Vue({
this.getAllTagFromRoutes()
},
mounted () {
this.$store.commit('d2adminPageOpenedListLoad')
// D2Admin 开发环境检查更新
util.checkUpdate(this)
},

View File

@@ -130,7 +130,7 @@ export default {
* @param {state} state vuex state
* @param {info} param1 new page info
*/
d2adminpageOpenedListUpdateItem (state, { index, argu, query }) {
d2adminPageOpenedListUpdateItem (state, { index, argu, query }) {
// 更新页面列表某一项
let page = state.pageOpenedList[index]
page.argu = argu || page.argu
@@ -139,6 +139,14 @@ export default {
// 更新设置到数据库
this.commit('d2adminVuex2DbByUuid', 'pageOpenedList')
},
/**
* @class pageOpenedList
* @description 从数据库载入分页列表
* @param {state} state vuex state
*/
d2adminPageOpenedListLoad (state) {
this.commit('d2adminDb2VuexByUuid', 'pageOpenedList', state.pageOpenedList)
},
/**
* @class pageOpenedList
* @description 新增一个 tag (打开一个页面)