no message
Former-commit-id: ba34ab8a9fcbf1cfffc54111935891e6a6024baf [formerly ba34ab8a9fcbf1cfffc54111935891e6a6024baf [formerly ba34ab8a9fcbf1cfffc54111935891e6a6024baf [formerly ba34ab8a9fcbf1cfffc54111935891e6a6024baf [formerly 468305dfd82cd0ecf96f389c4648f002b3643f82 [formerly ae318aa6d1de0726925f15fe875f426445992187]]]]] Former-commit-id: 6763abcd19d399bf9b417d38dc52dbf8bde2fc0d Former-commit-id: 4c4a492af4e5b79b7129e914a96e842002d41721 Former-commit-id: 98fca5903e7e9abd28a7550ea094e2b94e2516ed [formerly 2a760a5ac7367e13d67366cd2bb7eefeeac271c7] Former-commit-id: f6ba6535da660173ac05084f48faea15bdaf257c Former-commit-id: db879446f9631e92e66f807c767846a9b718f13e Former-commit-id: 56bea6996c90fee92cdc7badd4eef9a0e123b3f2 Former-commit-id: 07fea45f363b647c1f1969e1bc4e0b625203890c Former-commit-id: dc3d71de8749f0eb6484b56866f45f15648a35c9
This commit is contained in:
@@ -12,7 +12,7 @@ export default {
|
||||
themeList,
|
||||
themeActive: themeList[1],
|
||||
// 多页
|
||||
pageList: [
|
||||
pageOpenedList: [
|
||||
{
|
||||
name: 'index',
|
||||
title: '首页'
|
||||
@@ -20,6 +20,34 @@ export default {
|
||||
]
|
||||
},
|
||||
mutations: {
|
||||
/**
|
||||
* 更新页面列表上的某一项
|
||||
* @param {state} state vuex state
|
||||
* @param {info} param1 new page info
|
||||
*/
|
||||
d2adminpageOpenedListUpdateItem (state, { index, argu, query }) {
|
||||
// dev
|
||||
console.group('d2adminpageOpenedListUpdateItem')
|
||||
console.log('index: ', index)
|
||||
console.log('argu: ', argu)
|
||||
console.log('query: ', query)
|
||||
console.groupEnd()
|
||||
// 更新页面列表某一项
|
||||
let page = state.pageOpenedList[index]
|
||||
page.argu = argu || page.argu
|
||||
page.query = query || page.query
|
||||
state.pageOpenedList.splice(index, 1, page)
|
||||
// 更新设置到数据库
|
||||
const setting = db.get('pageOpenedList').find({uuid: util.uuid()})
|
||||
if (setting.value()) {
|
||||
setting.assign({value: state.pageOpenedList}).write()
|
||||
} else {
|
||||
db.get('pageOpenedList').push({
|
||||
uuid: util.uuid(),
|
||||
value: state.pageOpenedList
|
||||
}).write()
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 切换全屏
|
||||
* @param {state} state vuex state
|
||||
|
||||
Reference in New Issue
Block a user