mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-07 21:46:12 +08:00
添加option的空值校验
This commit is contained in:
parent
14769bb7e7
commit
3d2d15e177
@ -173,10 +173,10 @@ export default defineComponent({
|
|||||||
} else {
|
} else {
|
||||||
let option =
|
let option =
|
||||||
command.program === "custom"
|
command.program === "custom"
|
||||||
? command.customOptions
|
? command.customOptions || {}
|
||||||
: this.programs[command.program];
|
: this.programs[command.program] || {};
|
||||||
option.scptarg = command.scptarg;
|
option.scptarg = command.scptarg || "";
|
||||||
option.charset = command.charset;
|
option.charset = command.charset || {};
|
||||||
window.runCodeFile(
|
window.runCodeFile(
|
||||||
commandCode,
|
commandCode,
|
||||||
option,
|
option,
|
||||||
|
@ -170,8 +170,8 @@ export default {
|
|||||||
getCommandOpt(command) {
|
getCommandOpt(command) {
|
||||||
let option =
|
let option =
|
||||||
command.program === "custom"
|
command.program === "custom"
|
||||||
? command.customOptions
|
? command.customOptions || {}
|
||||||
: programs[command.program];
|
: programs[command.program] || {};
|
||||||
option.scptarg = command.scptarg || "";
|
option.scptarg = command.scptarg || "";
|
||||||
option.charset = command.charset || {};
|
option.charset = command.charset || {};
|
||||||
option.envPath = this.$root.nativeProfile.envPath.trim() || "";
|
option.envPath = this.$root.nativeProfile.envPath.trim() || "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user