* 本应用完全免费,如果觉得好用,可以给予捐赠。
* 开源项目持续发展离不开您的支持,感谢
@@ -122,7 +122,7 @@ export default {
},
computed: {
_rootCaSetuped () {
- if (this.setting && this.setting.rootCa) {
+ if (this.setting.rootCa) {
return this.setting.rootCa.setuped === true
}
return false
@@ -147,7 +147,7 @@ export default {
},
info: {},
newVersionDownloading: false,
- setting: undefined,
+ setting: {},
server: {
key: '代理服务',
loading: false,
@@ -220,7 +220,7 @@ export default {
async doCheckRootCa () {
const setting = await this.$api.setting.load()
console.log('setting', setting)
- this.setting = setting
+ this.setting = setting || {}
if (this.setting.rootCa && (this.setting.rootCa.setuped || this.setting.rootCa.noTip)) {
return
}