hookehuyr

fix

......@@ -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 {
......
/*
* @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);
}
});
......