diff --git a/index.html b/index.html
index 030a6ff51bfc6f6adcc472f6d8c02db92ce947a8..07391a6fc99b303eeb2c934334cabfde49acce85 100644
--- a/index.html
+++ b/index.html
@@ -2,7 +2,7 @@
-
+
Vite App
diff --git a/src/App.vue b/src/App.vue
index f39fe72f3b61b8e91884257444ac162b77400300..0de429b135c4a0000551ad8f7e43b991f305662d 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 440f40c4a1aec951f793773a6203bb33cf679aa6..ff870b1fc12de85709b4f3275e809912b8501f2d 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",
},