mirror of
https://github.com/eyebluecn/tank-front
synced 2024-04-21 12:31:55 +00:00
Fix the useless console log feature.
This commit is contained in:
@@ -27,7 +27,7 @@ export default class Lang {
|
||||
lang = localLang
|
||||
}
|
||||
Lang.singleton.lang = lang
|
||||
console.log("当前浏览器默认语言是:", lang)
|
||||
console.info("current lang: ", lang)
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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()
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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 () {
|
||||
//转跳到首页
|
||||
|
||||
@@ -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);
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user