修复部分bug

This commit is contained in:
wxd
2024-09-13 21:26:17 +08:00
parent 01b0fa0b7e
commit 6393952e52
11 changed files with 108 additions and 94 deletions

View File

@@ -103,7 +103,7 @@ const userHabit : Module<UserHabit,RootState> = {
});
})
},
getLangType(context){
async getLangType(context){
let allPromise = [];
let getList = ['DesignElementsEnum','PrintboardLevel2TypeEnum','FemalePosition','MalePosition']
let axiosGet = (item:any)=>{
@@ -130,7 +130,7 @@ const userHabit : Module<UserHabit,RootState> = {
})
})
}
return Promise.all(getList.map(item => axiosGet(item)))
return await Promise.all(getList.map(item => axiosGet(item)))
// Https.axiosGet(Https.httpUrls.workspaceenumValues,{params:{enumName:'DesignElementsEnum'}}).then((rv: any) => {
// if (rv) {
// rv.forEach((item:any) => {