mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-04-16 15:08:54 +00:00
needs debugs
This commit is contained in:
parent
26dca4ac64
commit
715818b9cb
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user