debug参数展示,基本功能开发

This commit is contained in:
暮光:城中城
2018-12-13 00:03:28 +08:00
parent a9c86940e2
commit 72d7f64cd6
12 changed files with 1170 additions and 1029 deletions

View File

@@ -77,6 +77,7 @@
var app = new Vue({
el: '#app',
data: {
initCount: 5,
catalogShowType: '',
treeShowType: '',
showParamType:'',
@@ -122,12 +123,14 @@
},
}
});
// 存储用户的配置信息
function storeUserSettings(){
setStorage(cacheKeys.userSettings, app.userSettings, function(){
getExport().updateUserSettings(app.userSettings);
});
function storeUserSettings() {
if (app.initCount-- <= 0) {
setStorage(cacheKeys.userSettings, app.userSettings, function () {
getExport().updateUserSettings(app.userSettings);
});
}
}
</script>