style: 去掉多余的console.log

Closes #778
This commit is contained in:
Captain.B 2020-11-18 10:13:45 +08:00
parent 7f0efeab68
commit f3ee4fce98
11 changed files with 18 additions and 18 deletions

View File

@ -106,7 +106,7 @@ export default {
try {
this.content = JSON.parse(this.report.content);
} catch (e) {
console.log(this.report.content)
// console.log(this.report.content)
throw e;
}
this.getFails();

View File

@ -387,7 +387,7 @@ export default {
},
handleEvent(event) {
if (event.keyCode === 83 && event.ctrlKey) {
console.log('拦截到 ctrl + s');//ctrl+s
// console.log(' ctrl + s');//ctrl+s
this.saveTest();
event.preventDefault();
event.returnValue = false;

View File

@ -20,7 +20,7 @@
},
methods: {
initWebSocket() {
window.console.log("init WebSocket");
// window.console.log("init WebSocket");
const uri = "ws://" + window.location.host + "/socket";
this.websocket = new WebSocket(uri);
this.websocket.onmessage = this.onMessage;
@ -36,10 +36,10 @@
window.console.error(e)
},
onMessage(e) {
window.console.log(e.data)
// window.console.log(e.data)
},
onClose(e) {
window.console.log('断开连接', e);
// window.console.log('', e);
},
send(Data) {
this.websocket.send(Data);

View File

@ -238,10 +238,10 @@ export default {
});
},
onOpen() {
window.console.log("socket opening.");
// window.console.log("socket opening.");
},
onError(e) {
window.console.error(e)
// window.console.error(e)
},
onMessage(e) {
this.$set(this.report, "refresh", e.data); //
@ -253,7 +253,7 @@ export default {
this.$set(this.report, "status", 'Running');
this.status = 'Running';
this.initReportTimeInfo();
window.console.log('receive a message:', e.data);
// window.console.log('receive a message:', e.data);
},
onClose(e) {
if (e.code === 1005) {
@ -263,7 +263,7 @@ export default {
this.$set(this.report, "refresh", Math.random()); //
this.$set(this.report, "status", 'Completed');
this.initReportTimeInfo();
window.console.log("socket closed.");
// window.console.log("socket closed.");
},
handleExport(name) {
this.result.loading = true;
@ -358,7 +358,7 @@ export default {
});
this.initWebSocket();
} else {
console.log("close socket.");
// console.log("close socket.");
this.websocket.close() //websocket
}
}

View File

@ -196,7 +196,7 @@ export default {
});
},
getJmxContent() {
console.log(this.report.testId);
// console.log(this.report.testId);
if (!this.report.testId) {
return;
}

View File

@ -178,7 +178,7 @@ export default {
handleAddTask(index, data) {
if (data.event && data.userIds.length > 0 && data.type) {
console.log(data.type)
// console.log(data.type)
if (data.type === 'NAIL_ROBOT' || data.type === 'WECHAT_ROBOT') {
if (!data.webhook) {
this.$warning(this.$t('organization.message.message_webhook'));

View File

@ -176,7 +176,7 @@ export default {
},
handleAddTask(index, data) {
if (data.event && data.userIds.length > 0 && data.type) {
console.log(data.type)
// console.log(data.type)
if (data.type === 'NAIL_ROBOT' || data.type === 'WECHAT_ROBOT') {
if (!data.webhook) {
this.$warning(this.$t('organization.message.message_webhook'));

View File

@ -140,7 +140,7 @@ export default {
methods: {
initForm(){
this.result = this.$get('/notice/search/message/'+this.testId, response => {
console.log(response.data);
// console.log(response.data);
this.form.scheduleTask = response.data;
})
},
@ -170,7 +170,7 @@ export default {
},
handleAddTask(index, data) {
if (data.event && data.userIds.length > 0 && data.type) {
console.log(data.type)
// console.log(data.type)
if (data.type === 'NAIL_ROBOT' || data.type === 'WECHAT_ROBOT') {
if (!data.webhook) {
this.$warning(this.$t('organization.message.message_webhook'));

View File

@ -184,7 +184,7 @@ export default {
handleAddTask(index, data) {
if (data.event && data.userIds.length > 0 && data.type) {
console.log(data.type)
// console.log(data.type)
if (data.type === 'NAIL_ROBOT' || data.type === 'WECHAT_ROBOT') {
if (!data.webhook) {
this.$warning(this.$t('organization.message.message_webhook'));

View File

@ -185,7 +185,7 @@ export default {
handleAddTask(index, data) {
if (data.event && data.userIds.length > 0 && data.type) {
console.log(data.type)
// console.log(data.type)
if (data.type === 'NAIL_ROBOT' || data.type === 'WECHAT_ROBOT') {
if (!data.webhook) {
this.$warning(this.$t('organization.message.message_webhook'));

View File

@ -301,7 +301,7 @@ export default {
return path + "/" + this.currentPage + "/" + this.pageSize;
},
handleEdit(testCase, index) {
console.log(testCase)
// console.log(testCase)
this.isReadOnly = false;
if (!checkoutTestManagerOrTestUser()) {
this.isReadOnly = true;