|
@@ -398,7 +398,14 @@ const createStatement = function () {
|
|
|
},
|
|
|
])
|
|
|
.then((response) => {
|
|
|
- if (response.data.code !== 1) {
|
|
|
+ const res = response.data
|
|
|
+ console.log(res, ', create statement res')
|
|
|
+ if (
|
|
|
+ res.code !== 1 ||
|
|
|
+ !Array.isArray(res.result.data) ||
|
|
|
+ !res.result.data.length ||
|
|
|
+ res.result.data[0].status === 'error'
|
|
|
+ ) {
|
|
|
ElMessage.error('创建statement出错')
|
|
|
return
|
|
|
}
|