fix
This commit is contained in:
@@ -329,9 +329,9 @@ export default defineComponent({
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.getPosition()
|
||||
this.getworkspace()
|
||||
this.getSex()
|
||||
this.getPosition()
|
||||
},
|
||||
directives:{
|
||||
fade:{
|
||||
@@ -413,17 +413,18 @@ export default defineComponent({
|
||||
this.workspaceItem.positionEnum = this.singleTypeList[0]
|
||||
}
|
||||
},
|
||||
getPosition(){
|
||||
Https.axiosGet(Https.httpUrls.workspaceenumValues,{params:{enumName:'FemalePosition'}}).then((rv: any) => {
|
||||
async getPosition(){
|
||||
await Https.axiosGet(Https.httpUrls.workspaceenumValues,{params:{enumName:'FemalePosition'}}).then((rv: any) => {
|
||||
if (rv) {
|
||||
this.position[0].value = rv
|
||||
}
|
||||
})
|
||||
Https.axiosGet(Https.httpUrls.workspaceenumValues,{params:{enumName:'MalePosition'}}).then((rv: any) => {
|
||||
await Https.axiosGet(Https.httpUrls.workspaceenumValues,{params:{enumName:'MalePosition'}}).then((rv: any) => {
|
||||
if (rv) {
|
||||
this.position[1].value = rv
|
||||
}
|
||||
})
|
||||
// this.setPosition('')
|
||||
},
|
||||
getworkspace(){
|
||||
// Https.axiosGet(Https.httpUrls.workspaceDetail,{params:{id:3}}).then((rv: any) => {
|
||||
|
||||
@@ -662,6 +662,7 @@ export default defineComponent({
|
||||
},
|
||||
//发送请求生成图片
|
||||
getgenerate(){
|
||||
this.sketchCatecoryList = this.store.state.Workspace.workspacePosition
|
||||
if(this.isTest){//试用用户禁止使用
|
||||
message.warning(
|
||||
this.t('isTest.available')
|
||||
@@ -735,6 +736,7 @@ export default defineComponent({
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
this.loadingShow = true
|
||||
Https.axiosPost(Https.httpUrls.sketchAndPrintGenerate, data).then(
|
||||
(rv) => {
|
||||
@@ -748,7 +750,7 @@ export default defineComponent({
|
||||
category:generage.level2Type?generage.level2Type:this.sketchCatecoryList[0].name,
|
||||
categoryValue:generage.level2Type?generage.level2Type:this.sketchCatecoryList[0].value,
|
||||
id_:GO.id++,
|
||||
like:rv.generatedCollectionItems[index].isLiked
|
||||
like:v.isLiked
|
||||
}
|
||||
this.generateList.push(arr)
|
||||
this.loadingShow = false
|
||||
|
||||
Reference in New Issue
Block a user