pull/733/head
parent
845e5de43f
commit
ef52f2465e
|
@ -45,9 +45,7 @@ export default {
|
||||||
// console.log(to, from)
|
// console.log(to, from)
|
||||||
if (to.query.updated) return
|
if (to.query.updated) return
|
||||||
let id = to.query.id
|
let id = to.query.id
|
||||||
if (id == null) {
|
if (id == null || !getList(id)) {
|
||||||
id = defaultList.id
|
|
||||||
} else if (!getList(id)) {
|
|
||||||
id = defaultList.id
|
id = defaultList.id
|
||||||
}
|
}
|
||||||
this.listId = id
|
this.listId = id
|
||||||
|
|
|
@ -112,12 +112,10 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
const exportSetting = (path) => {
|
const exportSetting = (path) => {
|
||||||
console.log(path)
|
|
||||||
const data = {
|
const data = {
|
||||||
type: 'setting',
|
type: 'setting',
|
||||||
data: Object.assign({ version: settingVersion.value }, toRaw(setting.value)),
|
data: Object.assign({ version: settingVersion.value }, toRaw(setting.value)),
|
||||||
}
|
}
|
||||||
console.log(data)
|
|
||||||
saveLxConfigFile(path, data)
|
saveLxConfigFile(path, data)
|
||||||
}
|
}
|
||||||
const handleExportSetting = () => {
|
const handleExportSetting = () => {
|
||||||
|
|
Loading…
Reference in New Issue