Browse Source

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

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

2
src/App.vue

@ -58,8 +58,10 @@ export default {
getLogo() { getLogo() {
Member.getLogo().then(res => { Member.getLogo().then(res => {
// console.info(res) // console.info(res)
if(res){
this.setAppConfig(res); this.setAppConfig(res);
this.setConfig(); 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); var config = JSON.parse(localStorage.appConfig);
document.getElementById('appTitle').innerText = config.name document.getElementById('appTitle').innerText = config.name
document.getElementById('appIcon').href = config.titles_logo document.getElementById('appIcon').href = config.titles_logo

Loading…
Cancel
Save