清理代码
This commit is contained in:
parent
9e00593c9c
commit
c9f968402e
@ -20,7 +20,6 @@ sync(store, router)
|
|||||||
|
|
||||||
// }
|
// }
|
||||||
|
|
||||||
Vue.config.devTools = process.env.NODE_ENV !== 'production'
|
|
||||||
Vue.config.productionTip = false
|
Vue.config.productionTip = false
|
||||||
|
|
||||||
new Vue({
|
new Vue({
|
||||||
|
|||||||
@ -244,7 +244,6 @@ export const updateSetting = (setting, version) => {
|
|||||||
},
|
},
|
||||||
windowSizeId: 2,
|
windowSizeId: 2,
|
||||||
themeId: 0,
|
themeId: 0,
|
||||||
minClose: false,
|
|
||||||
langId: 'cns',
|
langId: 'cns',
|
||||||
sourceId: 'kw',
|
sourceId: 'kw',
|
||||||
apiSource: 'temp',
|
apiSource: 'temp',
|
||||||
@ -269,10 +268,7 @@ export const updateSetting = (setting, version) => {
|
|||||||
setting = defaultSetting
|
setting = defaultSetting
|
||||||
}
|
}
|
||||||
if (setting.apiSource != 'temp') setting.apiSource = 'test' // 强制设置回 test 接口源
|
if (setting.apiSource != 'temp') setting.apiSource = 'test' // 强制设置回 test 接口源
|
||||||
// 存储中没有这个设置项时,设置为 false
|
|
||||||
if (typeof setting.minClose === 'undefined') {
|
|
||||||
setting.minClose = false
|
|
||||||
}
|
|
||||||
return { setting, version: defaultVersion }
|
return { setting, version: defaultVersion }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user