From 2af380ebc630c66c7bd8e01a14aa9240185fa603 Mon Sep 17 00:00:00 2001
From: 622aa39c1f9b166ab1a38c05 <622aa39c1f9b166ab1a38c05@devide>
Date: Fri, 7 Jul 2023 08:24:34 +0000
Subject: [PATCH] Auto Commit
---
index.html | 2 +-
src/App.vue | 11 ++++++++++-
src/js/config.js | 2 +-
3 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/index.html b/index.html
index 030a6ff..07391a6 100644
--- a/index.html
+++ b/index.html
@@ -2,7 +2,7 @@
-
+
Vite App
diff --git a/src/App.vue b/src/App.vue
index f39fe72..0de429b 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -270,6 +270,7 @@ export default {
}
},
query() {
+ debugger
if (this.loading) {
MessagePlugin.warning({ content: '正在执行中,请稍等!', placement: 'center' })
return
@@ -306,6 +307,7 @@ export default {
},
draw () {
+ this.loading = true
const currentMsg = {
"user": "AI", "message": '', img: null, viewMode: 'image'
}
@@ -321,7 +323,6 @@ export default {
messages.push(currentMsg)
- this.loading = true
// this.prompt = ''
this.scrollBottom()
const config = JSON.parse(JSON.stringify(this.config))
@@ -480,6 +481,7 @@ export default {
handleSDServerTypeChange (type) {
if (type === 'common') {
+ debugger
this.sdServerUrl = this.config.common_sd_api
}
this.saveConfig()
@@ -496,6 +498,13 @@ export default {
const data = Config.getData().data
this.name = data.name
document.title = this.name
+
+
+ if (data.ext) {
+ this.config.common_sd_api = data.ext.common_sd_api
+
+ }
+
} else {
this.getAppInfo()
diff --git a/src/js/config.js b/src/js/config.js
index 440f40c..ff870b1 100644
--- a/src/js/config.js
+++ b/src/js/config.js
@@ -20,7 +20,7 @@ export default {
"prompt_template":"",
"api_prompt_prefix":"",
"show_profile_setting":false,
- "common_sd_api": "https://api.quickapi.cloud/test/common/sd/",
+ "common_sd_api": "https://gpu-pod64a7c569f3b1573a4ae257e1-6006.node.inscode.run",
},
--
GitLab