去掉调试时的 console 语句

This commit is contained in:
fofolee 2022-04-29 23:17:58 +08:00
parent eb0f17bd9a
commit 3fa216bdd8
7 changed files with 22 additions and 31 deletions

View File

@ -246,7 +246,6 @@ let getCommandToLaunchTerminal = (cmdline, dir) => {
end tell'`;
}
console.log(command);
return command;
}
@ -402,7 +401,6 @@ window.getSelectFile = hwnd => {
encoding: "utf8",
windowsHide: true
})
console.log(result);
return result ? result.trim() : ""
}
}
@ -474,7 +472,7 @@ window.runCodeInSandbox = (code, callback, addVars = {}) => {
let sandbox = getSandboxFuns()
sandbox.console = {
log: (...stdout) => {
console.log(stdout);
console.log("Result:", stdout);
callback(stdout, null)
},
error: (...stderr) => {
@ -553,7 +551,7 @@ window.runCodeFile = (cmd, option, terminal, callback) => {
})
// var chunks = [],
// err_chunks = [];
console.log('running: ' + cmdline);
console.log('Running: ' + cmdline);
child.stdout.on('data', chunk => {
if (charset.outputCode) chunk = iconv.decode(chunk, charset.outputCode)
callback(chunk.toString(), null)
@ -620,7 +618,7 @@ window.quickcommandHttpServer = () => {
})
httpServer.listen(port, 'localhost');
httpServer.on('error', err => {
console.log(err)
console.log('httpErr:', err)
})
}
let stop = () => {

View File

@ -330,9 +330,6 @@ export default {
isCommandActivated: Boolean,
cardStyle: Object,
},
mounted() {
// console.log(this.commandInfo.features.code, this);
},
methods: {
//
getShortStrByByte(str) {

View File

@ -380,7 +380,6 @@ export default {
},
//
regexVerify() {
console.log(1);
if (
this.cmdType.valueType === "regex" &&
!/^\/.*?\/[igm]*$/.test(this.cmdMatch)

View File

@ -76,7 +76,6 @@ export default {
},
mounted() {
this.frameInit();
console.log(this.runResult);
},
methods: {
frameInit() {

View File

@ -179,7 +179,7 @@ export default {
)
: 1;
this.$root.utools.whole.fetchUserPayments().then((ret) => {
console.log(ret);
console.log("PayInfo:", ret);
!ret.filter((x) => x.goods_id === this.goodsId).length ||
(this.isPluginVIP = true);
});

View File

@ -151,7 +151,6 @@ const specialVars = {
desc: "用户设置的变量",
match: /{{usr:(.*?)}}/mg,
repl: (text, userData) => {
console.log(userData);
let filterd = userData.filter(x => x.id === text.slice(6, -2))
return filterd.length ? filterd[0].value : ''
},

View File

@ -150,7 +150,6 @@ export default {
},
mounted() {
window.yuQueClient(`repos/${this.releaseRepo}/docs`).then((res) => {
console.log(res.data);
this.allCommands = res.data.data;
this.matchedCommands = _.cloneDeep(this.allCommands);
this.fetchCommandDetails(1);