Browse Source

修改页面没有显示,需添加清除缓存

master
liaoxinyu 8 months ago
parent
commit
4b636026f2
  1. 6
      src/App.vue
  2. 5
      src/index.html

6
src/App.vue

@ -58,8 +58,10 @@ export default {
getLogo() {
Member.getLogo().then(res => {
// console.info(res)
this.setAppConfig(res);
this.setConfig();
if(res){
this.setAppConfig(res);
this.setConfig();
}
});
},
//

5
src/index.html

@ -27,7 +27,10 @@
}
}
}
if (localStorage.appConfig) {
if(!localStorage.token){
localStorage.clear();
}
if (localStorage.appConfig&&localStorage.appConfig!==undefined) {
var config = JSON.parse(localStorage.appConfig);
document.getElementById('appTitle').innerText = config.name
document.getElementById('appIcon').href = config.titles_logo

Loading…
Cancel
Save