Commit 67761a47 authored by Xuguangxing's avatar Xuguangxing

feat: 修复保存导航配置时作者为空的异常情况

parent 429fc174
......@@ -165,13 +165,6 @@ export default {
this.bgImg = '';
this.navigatorData = [];
}
let author = '';
try {
author = JSON.parse(localStorage.getItem('user')).account;
} catch (e) {
author = '';
}
this.author = author;
},
immediate: true
}
......@@ -179,13 +172,11 @@ export default {
computed: {
show: {
get() {
this.author = JSON.parse(localStorage.getItem('user')).account || '';
return this.value ? true : false;
},
set(v) {}
}
},
created() {
},
data() {
return {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment