修复sketchboard上传图片不显示类型问题
This commit is contained in:
@@ -329,6 +329,9 @@ export default defineComponent({
|
||||
};
|
||||
},
|
||||
async mounted() {
|
||||
// new Promise((resolve) => {
|
||||
// this.getPosition(resolve)
|
||||
// })
|
||||
await this.getPosition()
|
||||
this.getworkspace()
|
||||
this.getSex()
|
||||
@@ -405,9 +408,8 @@ export default defineComponent({
|
||||
}else{
|
||||
num = 1
|
||||
}
|
||||
|
||||
this.singleTypeList = this.position[num].value
|
||||
console.log(this.position[num],this.singleTypeList);
|
||||
|
||||
this.store.commit("setWorkspacePosition", this.position[num].value);
|
||||
|
||||
if(str == 'sex'){
|
||||
@@ -416,16 +418,20 @@ export default defineComponent({
|
||||
}
|
||||
},
|
||||
async getPosition(){
|
||||
await Https.axiosGet(Https.httpUrls.workspaceenumValues,{params:{enumName:'FemalePosition'}}).then((rv: any) => {
|
||||
if (rv) {
|
||||
this.position[0].value = rv
|
||||
}
|
||||
})
|
||||
await Https.axiosGet(Https.httpUrls.workspaceenumValues,{params:{enumName:'MalePosition'}}).then((rv: any) => {
|
||||
if (rv) {
|
||||
this.position[1].value = rv
|
||||
}
|
||||
await new Promise(async (resolve) => {
|
||||
await Https.axiosGet(Https.httpUrls.workspaceenumValues,{params:{enumName:'FemalePosition'}}).then((rv: any) => {
|
||||
if (rv) {
|
||||
this.position[0].value = rv
|
||||
}
|
||||
})
|
||||
await Https.axiosGet(Https.httpUrls.workspaceenumValues,{params:{enumName:'MalePosition'}}).then((rv: any) => {
|
||||
if (rv) {
|
||||
this.position[1].value = rv
|
||||
}
|
||||
})
|
||||
resolve('')
|
||||
})
|
||||
// this.getworkspace()
|
||||
// this.setPosition('')
|
||||
},
|
||||
getworkspace(){
|
||||
|
||||
Reference in New Issue
Block a user