fix
This commit is contained in:
@@ -343,7 +343,7 @@ export default defineComponent({
|
||||
},
|
||||
workspaceCom(newVal,oldVal){
|
||||
this.workspace = newVal
|
||||
this.upload.gender = newVal.sexEnum.name
|
||||
this.upload.gender = newVal?.sexEnum?.name
|
||||
},
|
||||
moodboarList(newVal,oldVal){
|
||||
if(newVal.length>=1 || this.sketchboardList.length >= 2){
|
||||
|
||||
@@ -131,6 +131,8 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 取消请求 -->
|
||||
<!-- <button @click="canelAxios">9999999999999999999</button> -->
|
||||
<scaleImage ref="scaleImage"></scaleImage>
|
||||
<Cropper ref="Cropper" @handleCropperSuccess="handleCropperSuccess" @closeCropper="deletUploadFile()" :cropperFileData="cropperFileData" :isUpload="isUpload"></Cropper>
|
||||
</div>
|
||||
@@ -150,6 +152,7 @@ import GO from "@/tool/GO";
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { openGuide,driverObj__ } from "@/tool/guide";
|
||||
import scaleImage from "@/component/HomePage/scaleImage.vue";
|
||||
import axios from 'axios'
|
||||
|
||||
export default defineComponent({
|
||||
components:{
|
||||
@@ -238,6 +241,7 @@ export default defineComponent({
|
||||
printboardList:computed(()=>{
|
||||
return useStore().state.UploadFilesModule.printboard
|
||||
}),
|
||||
source:axios.CancelToken.source()
|
||||
|
||||
}
|
||||
},
|
||||
@@ -253,6 +257,12 @@ export default defineComponent({
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
//取消请求测试
|
||||
canelAxios(){
|
||||
// Https.axiosCanel()
|
||||
this.source.cancel('请求被取消');
|
||||
this.source = axios.CancelToken.source()
|
||||
},
|
||||
open(num: Number) {
|
||||
this.openClick = num;
|
||||
let material:any = this.$refs.Material
|
||||
@@ -635,6 +645,8 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
this.loadingShow = true
|
||||
//取消请求
|
||||
// Https.axiosPost(Https.httpUrls.sketchAndPrintGenerate, data,{cancelToken: this.source?.token}).then(
|
||||
Https.axiosPost(Https.httpUrls.sketchAndPrintGenerate, data).then(
|
||||
(rv) => {
|
||||
if(rv){
|
||||
|
||||
@@ -382,7 +382,7 @@ export default defineComponent({
|
||||
watch:{
|
||||
workspaceCom(newVal,oldVal){
|
||||
this.workspace = newVal
|
||||
this.upload.gender = newVal.sexEnum.name
|
||||
this.upload.gender = newVal?.sexEnum?.name
|
||||
},
|
||||
sketchboardList:{
|
||||
handler(newVal:any,oldVal:any){
|
||||
|
||||
Reference in New Issue
Block a user