Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
vue-flow-editor
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2023-12-07 09:28:52 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6e8e70e647e2fe895c1840fa5e6a0bd88c1605e8
6e8e70e6
1 parent
131388bf
fix 登录失效loading显示优化问题
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
doc/App.vue
doc/axios.js
doc/App.vue
View file @
6e8e70e
...
...
@@ -673,7 +673,6 @@ export default {
state.select_flow_version = state.version_list[find_index].code; // 选中的版本号
} else { // 如果列表里没有启用的版本获取 flow_id 不存在时,默认选中第一个
state.select_flow_version = state.version_list[0].code; // 选中的版本号
state.reloadLoading = true; // 打开loading
updateFlowId(state.version_list[0].id); // 更新 flow_id
getFlowData(state.version_list[0].id);// 新的 flow_id,更新流程图
}
...
...
@@ -693,6 +692,7 @@ export default {
const flowData = ref<any>(null);
const getFlowData = async (flow_id: any) => {
flowData.value = null;
state.reloadLoading = true; // 打开loading
const { code, data } = await flowNodesAPI({ flow_id });
if (code) {
state.reloadLoading = false;
...
...
doc/axios.js
View file @
6e8e70e
/*
* @Date: 2023-10-27 11:12:24
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-12-0
4 10:41:18
* @LastEditTime: 2023-12-0
7 09:28:05
* @FilePath: /vue-flow-editor/doc/axios.js
* @Description: 文件描述
*/
...
...
@@ -82,6 +82,7 @@ axios.interceptors.response.use(
if
(
axios
.
isCancel
(
error
))
{
// 取消请求的情况下,终端Promise调用链
return
new
Promise
(()
=>
{
console
.
error
(
'取消请求响应'
,
error
);
return
false
;
});
}
else
{
// 其他的错误处理
return
Promise
.
reject
(
error
);
...
...
Please
register
or
login
to post a comment