needs debugs

This commit is contained in:
AndzejsP 2023-06-28 08:53:58 +03:00
parent 26dca4ac64
commit 715818b9cb
2 changed files with 15 additions and 8 deletions

View File

@ -65,16 +65,18 @@ export default {
this.onShowPersList(this)
},
async constructor() {
this.configFile = await this.api_get_req("get_config")
this.configFile = await this.api_get_req("get_config").then(()=>{
this.getPersonalitiesArr().then(() => {
this.getMountedPersonalities()
this.$forceUpdate()
})
})
let personality_path_infos = await this.api_get_req("get_current_personality_path_infos")
this.configFile.personality_language = personality_path_infos["personality_language"]
this.configFile.personality_category = personality_path_infos["personality_category"]
this.configFile.personality_folder = personality_path_infos["personality_name"]
await this.getPersonalitiesArr().then(() => {
this.getMountedPersonalities()
this.$forceUpdate()
})
},
async api_get_req(endpoint) {

View File

@ -70,7 +70,12 @@ export default {
},
methods: {
async constructor() {
this.configFile = await this.api_get_req("get_config")
this.configFile = await this.api_get_req("get_config").then(()=>{
this.getPersonalitiesArr().then(() => {
this.getMountedPersonalities()
this.$forceUpdate()
})
})
let personality_path_infos = await this.api_get_req("get_current_personality_path_infos")
this.configFile.personality_language = personality_path_infos["personality_language"]
this.configFile.personality_category = personality_path_infos["personality_category"]
@ -143,8 +148,8 @@ export default {
this.isLoading = false
this.getMountedPersonalities()
this.$forceUpdate()
// this.getMountedPersonalities()
// this.$forceUpdate()
},
personalityImgPlacehodler(event) {