hookehuyr

fix

...@@ -321,7 +321,7 @@ ...@@ -321,7 +321,7 @@
321 <i v-if="item.code === state.select_flow_version" class="el-icon-check" style="color: #009688; margin-right: 8px;"></i> 321 <i v-if="item.code === state.select_flow_version" class="el-icon-check" style="color: #009688; margin-right: 8px;"></i>
322 <div v-else style="width: 15px; height: 15px;display: inline-block; margin-right: 8px;"></div> 322 <div v-else style="width: 15px; height: 15px;display: inline-block; margin-right: 8px;"></div>
323 <span>流程版本 (V{{ item.code }})</span> 323 <span>流程版本 (V{{ item.code }})</span>
324 - <span v-if="item.code === state.current_enable_version" class="version-status">启用中</span> 324 + <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>
325 <!-- <span @click="showEditFlowVersion(item.id, item.code, item.note)" style="margin-left: 10px;"> 325 <!-- <span @click="showEditFlowVersion(item.id, item.code, item.note)" style="margin-left: 10px;">
326 <i class="el-icon-edit-outline"></i> 326 <i class="el-icon-edit-outline"></i>
327 </span> --> 327 </span> -->
...@@ -1710,15 +1710,6 @@ body { ...@@ -1710,15 +1710,6 @@ body {
1710 font-size: 13px; 1710 font-size: 13px;
1711 } 1711 }
1712 } 1712 }
1713 - .version-status {
1714 - background: #edf9f1;
1715 - border-color: #46c26f;
1716 - color: #46c26f;
1717 - font-size: 10px;
1718 - padding: 0 5px;
1719 - border-radius: 3px;
1720 - margin-left: 8px;
1721 - }
1722 } 1713 }
1723 1714
1724 .more-attr { 1715 .more-attr {
......
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:32:23 4 + * @LastEditTime: 2023-12-04 10:41:18
5 * @FilePath: /vue-flow-editor/doc/axios.js 5 * @FilePath: /vue-flow-editor/doc/axios.js
6 * @Description: 文件描述 6 * @Description: 文件描述
7 */ 7 */
...@@ -59,7 +59,7 @@ axios.interceptors.response.use( ...@@ -59,7 +59,7 @@ axios.interceptors.response.use(
59 // response.data.show = true; 59 // response.data.show = true;
60 if (response.data.msg === '登录失效') { 60 if (response.data.msg === '登录失效') {
61 // TAG: 某个请求的响应满足特定条件的情况下,取消【其他正在进行的请求】 61 // TAG: 某个请求的响应满足特定条件的情况下,取消【其他正在进行的请求】
62 - source.cancel(); 62 + source.cancel('登录失效');
63 // 63 //
64 ElMessageBox.alert('登录失效!将跳转到登录页面。', '温馨提示', { 64 ElMessageBox.alert('登录失效!将跳转到登录页面。', '温馨提示', {
65 confirmButtonText: '确定', 65 confirmButtonText: '确定',
...@@ -83,7 +83,7 @@ axios.interceptors.response.use( ...@@ -83,7 +83,7 @@ axios.interceptors.response.use(
83 return new Promise(() => { 83 return new Promise(() => {
84 console.error('取消请求响应', error); 84 console.error('取消请求响应', error);
85 }); 85 });
86 - } else { 86 + } else { // 其他的错误处理
87 return Promise.reject(error); 87 return Promise.reject(error);
88 } 88 }
89 }); 89 });
......