diff --git a/src/App.vue b/src/App.vue index 93cef71..2311516 100644 --- a/src/App.vue +++ b/src/App.vue @@ -31,7 +31,7 @@ const api = axios.create({ //读取本地储存数据 let settings = ref() -const settings_text = localStorage.getItem('settings') +const settings_text = localStorage.getItem('settings') || '' const settings_version = 1 let showUpgrade = ref(false) if (window.localStorage.getItem("settings")) {