mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-11 18:42:56 +00:00
test: 💍 更新一些测试用例的快照(因为prettier规则似乎发生了变化导致格式化后的结果出了些许偏差)
This commit is contained in:
parent
84bdb3f6fb
commit
a86897cec0
@ -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,
|
||||
|
||||
@ -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 () {
|
||||
|
||||
@ -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 () {
|
||||
|
||||
@ -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,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@ -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,
|
||||
// });
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user