test: 💍 更新一些测试用例的快照(因为prettier规则似乎发生了变化导致格式化后的结果出了些许偏差)

This commit is contained in:
Clarence-pan 2022-10-25 11:49:43 +08:00 committed by 牧毅
parent 84bdb3f6fb
commit a86897cec0
6 changed files with 8 additions and 13 deletions

View File

@ -253,7 +253,6 @@ class Home$$Page extends Component {
if (!response.success) {
throw new Error(response.message);
}
return response.data;
},
isInit: true,
@ -280,7 +279,6 @@ class Home$$Page extends Component {
if (!response.success) {
throw new Error(response.message);
}
return response.data.result;
},
isInit: true,

View File

@ -84,7 +84,6 @@ class Test$$Page extends React.Component {
if (!response.data.success) {
throw new Error(response.data.message);
}
return response.data.data;
},
isInit: function () {
@ -105,7 +104,6 @@ class Test$$Page extends React.Component {
if (!response.data.success) {
throw new Error(response.data.message);
}
return response.data.data.result;
},
isInit: function () {

View File

@ -84,7 +84,6 @@ class Test$$Page extends React.Component {
if (!response.data.success) {
throw new Error(response.data.message);
}
return response.data.data;
},
isInit: function () {
@ -105,7 +104,6 @@ class Test$$Page extends React.Component {
if (!response.data.success) {
throw new Error(response.data.message);
}
return response.data.data.result;
},
isInit: function () {

View File

@ -145,6 +145,7 @@ class Test$$Page extends React.Component {
onOkModifyDialogThird() {
//
this.setState({
currentStep: 0,
isModifyDialogVisible: false,
@ -153,6 +154,7 @@ class Test$$Page extends React.Component {
onCancelModifyDialogThird() {
//
this.setState({
isModifyDialogVisible: false,
});
@ -184,7 +186,10 @@ class Test$$Page extends React.Component {
onValuesChange(_, values) {
this.setState({
customerProjectInfo: { ...this.state.customerProjectInfo, ...values },
customerProjectInfo: {
...this.state.customerProjectInfo,
...values,
},
});
}

View File

@ -59,7 +59,6 @@ class Test$$Page extends React.Component {
};
this.__jp__init();
this.statusDesc = {
0: "失败",
1: "成功",
@ -157,7 +156,6 @@ class Test$$Page extends React.Component {
if (!item) {
return "暂无结果";
}
const { channel, plat, version, status } = item;
return [channel, plat, version, status].join("-");
}
@ -175,7 +173,8 @@ class Test$$Page extends React.Component {
params: {
size: 5000,
},
}); // if (this.state.init === false) {
});
// if (this.state.init === false) {
// this.setState({
// init: true,
// });

View File

@ -61,7 +61,6 @@ class Test$$Page extends React.Component {
};
this.__jp__init();
this.statusDesc = {
0: "失败",
1: "成功",
@ -196,12 +195,10 @@ class Test$$Page extends React.Component {
componentDidMount() {
this.$ds.resolve("PROJECTS");
if (this.userTimeout) {
clearTimeout(this.userTimeout);
this.userTimeout = null;
}
if (this.projectTimeout) {
clearTimeout(this.projectTimeout);
this.projectTimeout = null;