fixed remount problem

This commit is contained in:
Saifeddine ALOUI 2024-04-04 22:08:55 +02:00
parent 1e17df01e0
commit e4c7c8b84d
5 changed files with 15 additions and 8 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
web/dist/index.html vendored
View File

@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LoLLMS WebUI - Welcome</title>
<script type="module" crossorigin src="/assets/index-91ab3091.js"></script>
<link rel="stylesheet" href="/assets/index-d4c7f2b1.css">
<script type="module" crossorigin src="/assets/index-68bc418e.js"></script>
<link rel="stylesheet" href="/assets/index-bc280c24.css">
</head>
<body>
<div id="app"></div>

View File

@ -363,22 +363,29 @@ export default {
},
async remount_personality(pers) {
console.log("Remounting personality ", pers)
if (!pers) { return { 'status': false, 'error': 'no personality - mount_personality' } }
try {
console.log("before")
const obj = {
client_id: self.$store.state.client_id,
client_id: this.$store.state.client_id,
category: pers.category,
folder: pers.folder,
language: pers.language
}
console.log("after")
const res = await axios.post('/remount_personality', obj);
console.log("Remounting personality executed:",res)
if (res) {
console.log("Remounting personality res")
return res.data
}
else{
console.log("failed remount_personality")
}
} catch (error) {
console.log(error.message, 'remount_personality - settings')
return

View File

@ -272,7 +272,7 @@ export default {
this.$store.state.api_get_req('restart_program')
this.rebooting_audio.play()
this.$store.state.toast.showToast("Rebooting the app. Please wait...", 410, false)
//self.$store.state.toast.showToast("Rebooting the app. Please wait...", 50, true);
//this.$store.state.toast.showToast("Rebooting the app. Please wait...", 50, true);
console.log("this.$store.state.api_get_req",this.$store.state.api_get_req)
setTimeout(()=>{
window.close();