Fix "Check Update" is not checked by default

This commit is contained in:
Louis Lam
2022-04-05 19:43:23 +08:00
parent 48d679234a
commit 4b99160b1f
2 changed files with 5 additions and 1 deletions

View File

@@ -121,6 +121,10 @@ export default {
this.$root.getSocket().emit("getSettings", (res) => {
this.settings = res.data;
if (this.settings.checkUpdate === undefined) {
this.settings.checkUpdate = true;
}
if (this.settings.searchEngineIndex === undefined) {
this.settings.searchEngineIndex = false;
}