Fix: command default value

This commit is contained in:
unitwk 2022-08-23 23:39:19 +08:00
parent 7314c184a5
commit 94285fd742
2 changed files with 11 additions and 2 deletions

View File

@ -189,6 +189,15 @@ export default {
};
},
watch: {
activeName() {
if (this.activeName === "program" || this.activeName === "bds") {
this.command.additional = "";
this.command.suffix = "";
} else {
this.command.additional = "-Dfile.encoding=UTF-8 -Duser.language=zh -Duser.country=CN";
this.command.suffix = "nogui";
}
},
defaultProgramName() {
this.command.programName = this.defaultProgramName;
},

View File

@ -218,10 +218,10 @@ export default {
}
],
back: "Back",
instanceNameInfo: "Support Chinese and ensure uniqueness as much as possible",
instanceNameInfo: "Instance nickname",
instanceNameInfo2: "Instance name, as unique as possible",
commandTemplate: "Startup Command Template",
commandTemplateText: "where${ProgramNa&# 109;e} represents the name of the file you upload next, under normal circumstances there is no need to modify it",
commandTemplateText: "where $ProgramName represents the name of the file you upload next, under normal circumstances there is no need to modify it",
cmdInfo: "eg java -jar server.jar",
cmdAssist: "Command Assistant",
fileDir: "Server file directory",