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-04 10:27:36 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
35c6b8ea2fa3941eda7eeebe83370cf7f3b04e66
35c6b8ea
1 parent
7e6621a6
fix
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
doc/App.vue
doc/axios.js
doc/App.vue
View file @
35c6b8e
...
...
@@ -1828,4 +1828,10 @@ body {
background-color: white;
color: #009688 !important;
}
.el-button.el-button--primary {
background-color: #009688!important;
border-color: #009688!important;
color: white!important;
}
</style>
...
...
doc/axios.js
View file @
35c6b8e
/*
* @Date: 2023-10-27 11:12:24
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-12-04 10:
19:45
* @LastEditTime: 2023-12-04 10:
24:48
* @FilePath: /vue-flow-editor/doc/axios.js
* @Description: 文件描述
*/
...
...
@@ -79,7 +79,9 @@ axios.interceptors.response.use(
},
error
=>
{
if
(
axios
.
isCancel
(
error
))
{
// 取消请求的情况下,终端Promise调用链
return
new
Promise
(()
=>
{});
return
new
Promise
(()
=>
{
console
.
error
(
'取消请求响应'
,
error
);
});
}
else
{
return
Promise
.
reject
(
error
);
}
...
...
Please
register
or
login
to post a comment