This commit is contained in:
X1627315083
2023-12-15 15:23:34 +08:00
parent 909ea7ac2f
commit fc4403c6ca
48 changed files with 211 additions and 107 deletions

View File

@@ -380,7 +380,6 @@ import { useStore } from "vuex";
import { Https } from "@/tool/https";
import { getCookie } from "@/tool/cookie";
import { useI18n } from "vue-i18n";
import type { ShowSearchType } from 'ant-design-vue/es/cascader';
import { ElCascader } from 'element-plus'
export default defineComponent({
components: {
@@ -1150,7 +1149,7 @@ export default defineComponent({
version:this.selectCode == 'Printboard'?this.printModel.num:1,//为1就是Print
gender:this.selectCode == 'Sketchboard'?this.sex.value:'',
}
if(generateType == 'image'||generateType == 'text-image'){
if(generateType == 'image'){
if(generageImg?.id){
data.text = ''
}else{
@@ -1179,9 +1178,29 @@ export default defineComponent({
return
}
}
if(generateType == 'image'){
data.text = ''
}else if(generateType == 'text-image'){
if(generageImg?.id){
if(this.captionGeneration){
let arr = this.captionGeneration.split(/\s+/).length
if(arr > 75){
message.warning(
this.t('LibraryPage.jsContent6')
);
return
}
}else{
message.info(
this.t('LibraryPage.jsContent7')
);
return
}
}else{
message.warning(
this.t('LibraryPage.jsContent9')
);
return
}
}
this.isShowMark = true
Https.axiosPost(Https.httpUrls.sketchAndPrintGenerate, data).then(