优化部分代码

This commit is contained in:
学习很差啦
2022-08-25 12:46:52 +08:00
parent 6ccdeba85e
commit d9ac9eb2eb
7 changed files with 15 additions and 12 deletions

View File

@@ -65,8 +65,14 @@ export default {
* 清除缓存重新登录
*/
async confirm() {
await logout();
this.clear();
try{
await logout();
this.clear();
}catch(e){
//TODO handle the exception
this.clear();
}
},
/**