清理代码
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
|
||||
|
||||
new Vue({
|
||||
|
||||
@ -244,7 +244,6 @@ export const updateSetting = (setting, version) => {
|
||||
},
|
||||
windowSizeId: 2,
|
||||
themeId: 0,
|
||||
minClose: false,
|
||||
langId: 'cns',
|
||||
sourceId: 'kw',
|
||||
apiSource: 'temp',
|
||||
@ -269,10 +268,7 @@ export const updateSetting = (setting, version) => {
|
||||
setting = defaultSetting
|
||||
}
|
||||
if (setting.apiSource != 'temp') setting.apiSource = 'test' // 强制设置回 test 接口源
|
||||
// 存储中没有这个设置项时,设置为 false
|
||||
if (typeof setting.minClose === 'undefined') {
|
||||
setting.minClose = false
|
||||
}
|
||||
|
||||
return { setting, version: defaultVersion }
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user