Auto Commit

上级 dfe5009e
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" /> <link rel="icon" href="https://csdn-665-inscode.s3.cn-north-1.jdcloud-oss.com/inscode/202307/anonymous/1688436360645-09755384-VMG9VSsOi4FZl8WOUxmIxdojCO1Jy0wY/avatar" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite App</title> <title>Vite App</title>
</head> </head>
......
...@@ -270,6 +270,7 @@ export default { ...@@ -270,6 +270,7 @@ export default {
} }
}, },
query() { query() {
debugger
if (this.loading) { if (this.loading) {
MessagePlugin.warning({ content: '正在执行中,请稍等!', placement: 'center' }) MessagePlugin.warning({ content: '正在执行中,请稍等!', placement: 'center' })
return return
...@@ -306,6 +307,7 @@ export default { ...@@ -306,6 +307,7 @@ export default {
}, },
draw () { draw () {
this.loading = true
const currentMsg = { const currentMsg = {
"user": "AI", "message": '', img: null, viewMode: 'image' "user": "AI", "message": '', img: null, viewMode: 'image'
} }
...@@ -321,7 +323,6 @@ export default { ...@@ -321,7 +323,6 @@ export default {
messages.push(currentMsg) messages.push(currentMsg)
this.loading = true
// this.prompt = '' // this.prompt = ''
this.scrollBottom() this.scrollBottom()
const config = JSON.parse(JSON.stringify(this.config)) const config = JSON.parse(JSON.stringify(this.config))
...@@ -480,6 +481,7 @@ export default { ...@@ -480,6 +481,7 @@ export default {
handleSDServerTypeChange (type) { handleSDServerTypeChange (type) {
if (type === 'common') { if (type === 'common') {
debugger
this.sdServerUrl = this.config.common_sd_api this.sdServerUrl = this.config.common_sd_api
} }
this.saveConfig() this.saveConfig()
...@@ -496,6 +498,13 @@ export default { ...@@ -496,6 +498,13 @@ export default {
const data = Config.getData().data const data = Config.getData().data
this.name = data.name this.name = data.name
document.title = this.name document.title = this.name
if (data.ext) {
this.config.common_sd_api = data.ext.common_sd_api
}
} else { } else {
this.getAppInfo() this.getAppInfo()
......
...@@ -20,7 +20,7 @@ export default { ...@@ -20,7 +20,7 @@ export default {
"prompt_template":"", "prompt_template":"",
"api_prompt_prefix":"", "api_prompt_prefix":"",
"show_profile_setting":false, "show_profile_setting":false,
"common_sd_api": "https://api.quickapi.cloud/test/common/sd/", "common_sd_api": "https://gpu-pod64a7c569f3b1573a4ae257e1-6006.node.inscode.run",
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册