Fix WebUI

This commit is contained in:
Yukino Song
2025-05-28 03:47:29 +08:00
parent 03194a6fa3
commit b2ec048333
3 changed files with 16 additions and 4 deletions

View File

@@ -379,8 +379,20 @@
});
});
this.global_prep_cmd = this.config.global_prep_cmd;
this.server_cmd = this.config.server_cmd;
if (this.platform === 'windows') {
this.global_prep_cmd = this.config.global_prep_cmd.map((i) => {
i.elevated = !!i.elevated
return i
});
this.server_cmd = this.config.server_cmd.map((i) => {
i.elevated = !!i.elevated
return i
});
} else {
this.global_prep_cmd = this.config.global_prep_cmd;
this.server_cmd = this.config.server_cmd;
}
});
},
methods: {