清理代码

This commit is contained in:
lyswhut 2020-04-03 19:54:50 +08:00
parent 9e00593c9c
commit c9f968402e
2 changed files with 1 additions and 6 deletions

View File

@ -20,7 +20,6 @@ sync(store, router)
// }
Vue.config.devTools = process.env.NODE_ENV !== 'production'
Vue.config.productionTip = false
new Vue({

View File

@ -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 }
}