mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-09-24 13:03:30 +08:00
更改enterData的赋值方式
This commit is contained in:
@@ -113,9 +113,6 @@ export default {
|
||||
utools.outPlugin();
|
||||
}, 500);
|
||||
if (currentCommand.program === "quickcommand") {
|
||||
let qc = _.cloneDeep(quickcommand);
|
||||
qc.enterData = this.$root.enterData;
|
||||
qc.type = this.$root.enterData.type;
|
||||
window.runCodeInSandbox(
|
||||
currentCommand.cmd,
|
||||
(stdout, stderr) => {
|
||||
@@ -126,7 +123,7 @@ export default {
|
||||
}
|
||||
!outPlugin && this.showRunResult(stdout, true, action);
|
||||
},
|
||||
{ quickcommand: qc }
|
||||
{ enterData: this.$root.enterData }
|
||||
);
|
||||
} else if (currentCommand.program === "html") {
|
||||
this.showRunResult(currentCommand.cmd, true, action);
|
||||
|
Reference in New Issue
Block a user