环境为 quiccommand 时不支持在终端输出

This commit is contained in:
fofolee 2022-04-09 16:14:37 +08:00
parent e950811e88
commit b36248c9bc

View File

@ -184,7 +184,7 @@
color="primary" color="primary"
v-model="currentCommand.output" v-model="currentCommand.output"
:display-value="outputTypes[currentCommand.output].label" :display-value="outputTypes[currentCommand.output].label"
:options="outputTypesOptions" :options="outputTypesOptionsDy"
label="输出" label="输出"
> >
<template v-slot:prepend> <template v-slot:prepend>
@ -272,6 +272,11 @@ export default {
); );
return x; return x;
}, },
outputTypesOptionsDy() {
return this.$parent.quickcommandInfo.program === "quickcommand"
? _.without(this.outputTypesOptions, "terminal")
: this.outputTypesOptions;
},
}, },
methods: { methods: {
init() { init() {