Showing
2 changed files
with
3 additions
and
2 deletions
| ... | @@ -673,7 +673,6 @@ export default { | ... | @@ -673,7 +673,6 @@ export default { |
| 673 | state.select_flow_version = state.version_list[find_index].code; // 选中的版本号 | 673 | state.select_flow_version = state.version_list[find_index].code; // 选中的版本号 |
| 674 | } else { // 如果列表里没有启用的版本获取 flow_id 不存在时,默认选中第一个 | 674 | } else { // 如果列表里没有启用的版本获取 flow_id 不存在时,默认选中第一个 |
| 675 | state.select_flow_version = state.version_list[0].code; // 选中的版本号 | 675 | state.select_flow_version = state.version_list[0].code; // 选中的版本号 |
| 676 | - state.reloadLoading = true; // 打开loading | ||
| 677 | updateFlowId(state.version_list[0].id); // 更新 flow_id | 676 | updateFlowId(state.version_list[0].id); // 更新 flow_id |
| 678 | getFlowData(state.version_list[0].id);// 新的 flow_id,更新流程图 | 677 | getFlowData(state.version_list[0].id);// 新的 flow_id,更新流程图 |
| 679 | } | 678 | } |
| ... | @@ -693,6 +692,7 @@ export default { | ... | @@ -693,6 +692,7 @@ export default { |
| 693 | const flowData = ref<any>(null); | 692 | const flowData = ref<any>(null); |
| 694 | const getFlowData = async (flow_id: any) => { | 693 | const getFlowData = async (flow_id: any) => { |
| 695 | flowData.value = null; | 694 | flowData.value = null; |
| 695 | + state.reloadLoading = true; // 打开loading | ||
| 696 | const { code, data } = await flowNodesAPI({ flow_id }); | 696 | const { code, data } = await flowNodesAPI({ flow_id }); |
| 697 | if (code) { | 697 | if (code) { |
| 698 | state.reloadLoading = false; | 698 | state.reloadLoading = false; | ... | ... |
| 1 | /* | 1 | /* |
| 2 | * @Date: 2023-10-27 11:12:24 | 2 | * @Date: 2023-10-27 11:12:24 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2023-12-04 10:41:18 | 4 | + * @LastEditTime: 2023-12-07 09:28:05 |
| 5 | * @FilePath: /vue-flow-editor/doc/axios.js | 5 | * @FilePath: /vue-flow-editor/doc/axios.js |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | */ | 7 | */ |
| ... | @@ -82,6 +82,7 @@ axios.interceptors.response.use( | ... | @@ -82,6 +82,7 @@ axios.interceptors.response.use( |
| 82 | if (axios.isCancel(error)) { // 取消请求的情况下,终端Promise调用链 | 82 | if (axios.isCancel(error)) { // 取消请求的情况下,终端Promise调用链 |
| 83 | return new Promise(() => { | 83 | return new Promise(() => { |
| 84 | console.error('取消请求响应', error); | 84 | console.error('取消请求响应', error); |
| 85 | + return false; | ||
| 85 | }); | 86 | }); |
| 86 | } else { // 其他的错误处理 | 87 | } else { // 其他的错误处理 |
| 87 | return Promise.reject(error); | 88 | return Promise.reject(error); | ... | ... |
-
Please register or login to post a comment