Fix the useless console log feature.

This commit is contained in:
lishuang
2020-07-18 14:52:39 +08:00
parent 17a674d956
commit 392fd860f2
13 changed files with 19 additions and 23 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ export default class Lang {
lang = localLang
}
Lang.singleton.lang = lang
console.log("当前浏览器默认语言是:", lang)
console.info("current lang: ", lang)
}
-1
View File
@@ -14,7 +14,6 @@ export default class StringUtil {
const regex = /_[a-z]/gm;
return str.replace(regex, function (letter: any, index: any) {
console.log("letter", letter)
return letter.substr(1).toUpperCase()
})
}
-2
View File
@@ -206,14 +206,12 @@ export default class Index extends TankComponent<IProps, IState> {
for (let i = 0; i < that.days; i++) {
if (i >= 0 && i <= 6) {
console.log("standard i = " + i + " invokeNumData=" + invokeNumData[i])
that.standardWeekInvokeNum += invokeNumData[i]
that.standardWeekUv += uvData[i]
that.standardWeekMatterNum += matterNumData[i]
that.standardWeekSize += fileSizeData[i]
} else if (i >= 7 && i <= 13) {
console.log("compare i = " + i + " invokeNumData=" + invokeNumData[i])
that.compareWeekInvokeNum += invokeNumData[i]
that.compareWeekUv += uvData[i]
that.compareWeekMatterNum += matterNumData[i]
+1 -2
View File
@@ -34,7 +34,6 @@ export default class MysqlPanel extends TankComponent<IProps, IState> {
onFinish(values: any) {
console.log('Success:', values);
let that = this
let install: Install = this.props.install
@@ -62,7 +61,7 @@ export default class MysqlPanel extends TankComponent<IProps, IState> {
};
onFinishFailed(errorInfo: any) {
console.log('Failed:', errorInfo);
};
goToNext() {
@@ -36,7 +36,7 @@ export default class PhaseCreatePanel extends TankComponent<IProps, IState> {
}
onFinish(values: any) {
console.log('Success:', values);
let that = this;
let install: Install = this.props.install
@@ -52,7 +52,7 @@ export default class PhaseCreatePanel extends TankComponent<IProps, IState> {
};
onFinishFailed(errorInfo: any) {
console.log('Failed:', errorInfo);
};
render() {
@@ -38,7 +38,7 @@ export default class PhaseVerifyPanel extends TankComponent<IProps, IState> {
onFinish(values: any) {
console.log('Success:', values);
let that = this;
let install: Install = this.props.install
@@ -55,7 +55,7 @@ export default class PhaseVerifyPanel extends TankComponent<IProps, IState> {
};
onFinishFailed(errorInfo: any) {
console.log('Failed:', errorInfo);
};
render() {
+2 -2
View File
@@ -53,7 +53,7 @@ export default class Edit extends TankComponent<IProps, IState> {
}
onFinish(values: any) {
console.log("Success:", values);
let that = this;
@@ -71,7 +71,7 @@ export default class Edit extends TankComponent<IProps, IState> {
}
onFinishFailed(errorInfo: any) {
console.log("Failed:", errorInfo);
}
render() {
+1 -1
View File
@@ -35,7 +35,7 @@ export default class Authentication extends TankComponent<IProps, IState> {
componentDidMount() {
let match = this.props.match;
console.log(match.params.authentication)
this.user.httpAuthenticationLogin(match.params.authentication, function () {
//转跳到首页
+2 -2
View File
@@ -65,7 +65,7 @@ export default class Edit extends TankComponent<IProps, IState> {
}
onFinish(values: any) {
console.log('Success:', values);
let that = this
@@ -88,7 +88,7 @@ export default class Edit extends TankComponent<IProps, IState> {
};
onFinishFailed(errorInfo: any) {
console.log('Failed:', errorInfo);
};
+2 -2
View File
@@ -49,7 +49,7 @@ export default class Login extends TankComponent<IProps, IState> {
}
onFinish(values: any) {
console.log('Success:', values);
let that = this
@@ -65,7 +65,7 @@ export default class Login extends TankComponent<IProps, IState> {
};
onFinishFailed(errorInfo: any) {
console.log('Failed:', errorInfo);
};
+1 -2
View File
@@ -33,7 +33,6 @@ export default class Register extends TankComponent<IProps, IState> {
}
onFinish(values: any) {
console.log('Success:', values);
let that = this
@@ -49,7 +48,7 @@ export default class Register extends TankComponent<IProps, IState> {
};
onFinishFailed(errorInfo: any) {
console.log('Failed:', errorInfo);
};
@@ -50,7 +50,7 @@ export default class ChangePasswordModal extends TankComponent<IProps, IState> {
onFinish(values: any) {
console.log('Success:', values);
let that = this
@@ -66,7 +66,7 @@ export default class ChangePasswordModal extends TankComponent<IProps, IState> {
};
onFinishFailed(errorInfo: any) {
console.log('Failed:', errorInfo);
};
+3 -2
View File
@@ -83,7 +83,8 @@ export default class StringsPicker extends TankComponent<IProps, IState> {
handleClose(removedTag: string) {
const tags = this.state.tags.filter(tag => tag !== removedTag);
console.log(tags);
this.setState({tags});
@@ -109,7 +110,7 @@ export default class StringsPicker extends TankComponent<IProps, IState> {
if (inputValue && tags.indexOf(inputValue) === -1) {
tags = [...tags, inputValue];
}
console.log(tags);
this.setState({
tags,
inputVisible: false,