运行命令界面

This commit is contained in:
fofolee
2022-04-08 19:08:31 +08:00
parent 0f7f13306b
commit 0ca153ac10
3 changed files with 38 additions and 8 deletions

View File

@@ -29,7 +29,10 @@
</div>
<div v-else>
<q-card>
{{ action.data }}
<pre
:class="runResultStatus ? '' : 'text-red'"
v-html="runResult"
></pre>
</q-card>
</div>
</div>
@@ -48,6 +51,9 @@ export default {
props: {
action: Object,
},
mounted() {
window.runResult = this;
},
methods: {
// 运行命令
async runCurrentCommand(currentCommand) {