瀏覽代碼
update Web/src/App.vue.
当 Local.get('themeConfig') 返回 null(比如首次访问应用或本地存储被清除时),会出现"Cannot read properties of null (reading 'globalI18n')"错误。
如下:
App.vue:32 Uncaught TypeError: Cannot read properties of null (reading 'globalI18n')
at setup (App.vue:32:1)
at callWithErrorHandling (runtime-core.esm-bundler.js:199:19)
at setupStatefulComponent (runtime-core.esm-bundler.js:7998:25)
at setupComponent (runtime-core.esm-bundler.js:7959:36)
at mountComponent (runtime-core.esm-bundler.js:5287:7)
at processComponent (runtime-core.esm-bundler.js:5253:9)
at patch (runtime-core.esm-bundler.js:4769:11)
at render2 (runtime-core.esm-bundler.js:6064:7)
at mount (runtime-core.esm-bundler.js:4006:13)
at app.mount (runtime-dom.esm-bundler.js:1773:19)
Signed-off-by: 蓝猴子 <czieboy@live.cn>