Commit 67761a47 authored by Xuguangxing's avatar Xuguangxing

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

parent 429fc174
...@@ -165,13 +165,6 @@ export default { ...@@ -165,13 +165,6 @@ export default {
this.bgImg = ''; this.bgImg = '';
this.navigatorData = []; this.navigatorData = [];
} }
let author = '';
try {
author = JSON.parse(localStorage.getItem('user')).account;
} catch (e) {
author = '';
}
this.author = author;
}, },
immediate: true immediate: true
} }
...@@ -179,13 +172,11 @@ export default { ...@@ -179,13 +172,11 @@ export default {
computed: { computed: {
show: { show: {
get() { get() {
this.author = JSON.parse(localStorage.getItem('user')).account || '';
return this.value ? true : false; return this.value ? true : false;
}, },
set(v) {} set(v) {}
} }
},
created() {
}, },
data() { data() {
return { 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