diff --git a/web/src/components/MountedPersonalities.vue b/web/src/components/MountedPersonalities.vue index 3b450170..d86e2526 100644 --- a/web/src/components/MountedPersonalities.vue +++ b/web/src/components/MountedPersonalities.vue @@ -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) { diff --git a/web/src/components/MountedPersonalitiesList.vue b/web/src/components/MountedPersonalitiesList.vue index 6599e82f..c5839f0f 100644 --- a/web/src/components/MountedPersonalitiesList.vue +++ b/web/src/components/MountedPersonalitiesList.vue @@ -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) {