fix radio button not checked

This commit is contained in:
LouisLam 2021-08-09 18:46:57 +08:00
parent b69185ee9e
commit 550c9703a6

View file

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