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:48:34 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
410ebb6059506b5ece306944bd3846c3fcd4401a
410ebb60
1 parent
d7d251df
fix
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
13 deletions
doc/App.vue
doc/axios.js
doc/App.vue
View file @
410ebb6
...
...
@@ -321,7 +321,7 @@
<i v-if="item.code === state.select_flow_version" class="el-icon-check" style="color: #009688; margin-right: 8px;"></i>
<div v-else style="width: 15px; height: 15px;display: inline-block; margin-right: 8px;"></div>
<span>流程版本 (V{{ item.code }})</span>
<span v-if="item.code === state.current_enable_version"
class="version-status
">启用中</span>
<span v-if="item.code === state.current_enable_version"
style="background: #edf9f1; border-color: #46c26f; color: #46c26f; font-size: 10px; padding: 0 5px; border-radius: 3px; margin-left: 8px;
">启用中</span>
<!-- <span @click="showEditFlowVersion(item.id, item.code, item.note)" style="margin-left: 10px;">
<i class="el-icon-edit-outline"></i>
</span> -->
...
...
@@ -1710,15 +1710,6 @@ body {
font-size: 13px;
}
}
.version-status {
background: #edf9f1;
border-color: #46c26f;
color: #46c26f;
font-size: 10px;
padding: 0 5px;
border-radius: 3px;
margin-left: 8px;
}
}
.more-attr {
...
...
doc/axios.js
View file @
410ebb6
/*
* @Date: 2023-10-27 11:12:24
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-12-04 10:
32:23
* @LastEditTime: 2023-12-04 10:
41:18
* @FilePath: /vue-flow-editor/doc/axios.js
* @Description: 文件描述
*/
...
...
@@ -59,7 +59,7 @@ axios.interceptors.response.use(
// response.data.show = true;
if
(
response
.
data
.
msg
===
'登录失效'
)
{
// TAG: 某个请求的响应满足特定条件的情况下,取消【其他正在进行的请求】
source
.
cancel
();
source
.
cancel
(
'登录失效'
);
//
ElMessageBox
.
alert
(
'登录失效!将跳转到登录页面。'
,
'温馨提示'
,
{
confirmButtonText
:
'确定'
,
...
...
@@ -83,7 +83,7 @@ axios.interceptors.response.use(
return
new
Promise
(()
=>
{
console
.
error
(
'取消请求响应'
,
error
);
});
}
else
{
}
else
{
// 其他的错误处理
return
Promise
.
reject
(
error
);
}
});
...
...
Please
register
or
login
to post a comment