wolfboys commented on code in PR #3461:
URL:
https://github.com/apache/incubator-streampark/pull/3461#discussion_r1443971677
##########
streampark-console/streampark-console-webapp/src/views/flink/home/components/Modal.vue:
##########
@@ -99,14 +99,14 @@
flinkName: formValue.flinkName,
flinkHome: formValue.flinkHome,
});
- const checkResp = parseInt(resp.data);
- if (checkResp != 0) {
+ const checkResp = resp.data;
+ if (checkResp != 'ok') {
Review Comment:
Here is how the front-end (FE) use enums to adapt to the values returned by
the back-end (BE), You can refer to it:
https://github.com/apache/incubator-streampark/blob/dev/streampark-console/streampark-console-webapp/src/enums/flinkEnum.ts
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]