zjs_project 1 vuosi sitten
vanhempi
commit
ec410fdab2
2 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3 1
      src/components/newBottomCom/viewAI/viewAI.vue
  2. 0 2
      src/services/request.js

+ 3 - 1
src/components/newBottomCom/viewAI/viewAI.vue

@@ -315,7 +315,9 @@
 				this.stopFlag = true;//停止上传标志打开
 				if(this.uploadStatus == 1){
 					this.cancelTokenSource.cancel('上传已取消');//通知取消上传
-					alert("上传取消")
+					Toast({
+						message: '上传已取消',
+					});
 				}
 				else if(this.uploadStatus==2 || this.uploadStatus==3){//绿幕抠图中 或者已经完成
 					let data = {

+ 0 - 2
src/services/request.js

@@ -4,7 +4,6 @@ import router from "@/router";
 import {getStorage, removeItem} from '@/utils/localStorage'
 var requestCount = 0; //记录下同时的请求数
 // import ElementUI from 'element-ui';
-var showToast = true;
 
 axios.defaults.headers.post['elabEnvironment'] = '4'; //axios默认的请求方式,可以自己设置
 axios.defaults.headers.post['userType'] = '1000'; //axios默认的请求方式,可以自己设置
@@ -34,7 +33,6 @@ axios.interceptors.request.use(function(config) {
 		||config.url.includes('elab-marketing-user/vcode/send/verifyCode')) {
 			config.headers['userId'] = "";
 			config.headers['ip'] = "";
-			showToast = true;
 		} else {//uploadOss 上传format文件过大时提示不成功,接口500,通过测试与header有关,注释掉上传的header就好了
 			if (!config.url.includes('elab-marketing-sms/aliyun/openapi/uploadOss')
 			&& !config.url.includes('/robust_video')){