Merge branch 'main' of git.zdool.com:xs/yxdt/h5
This commit is contained in:
commit
06278df9d6
|
@ -300,7 +300,7 @@ const sendMessage = () => {
|
|||
let messageValue = inputText.value.trim()
|
||||
if (inputText.value.trim()) {
|
||||
messages.push({ id: Date.now(), text: inputText.value, isMe: true, type: 'txt' });
|
||||
http.post('/test', { "text": messageValue }).then((res) => {
|
||||
http.post('/generate', { "text": messageValue }).then((res) => {
|
||||
console.log("res", res);
|
||||
// var msg = JSON.parse(res.name)
|
||||
var msg = res.response
|
||||
|
|
|
@ -10,11 +10,11 @@ export default defineConfig({
|
|||
host: "0.0.0.0", // ← 新增内容 ←
|
||||
hmr: true, // 自动热更新
|
||||
proxy: {
|
||||
"/test": {
|
||||
"/generate": {
|
||||
// target: "http://192.168.2.86:8003",
|
||||
target: "http://aiai.cityme.com.cn/generate",
|
||||
target: "https://aiai.cityme.com.cn",
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/\/test/, ""), //重写真实路径,替换/api
|
||||
// rewrite: (path) => path.replace(/\/test/, ""), //重写真实路径,替换/api
|
||||
},
|
||||
'/srv': {
|
||||
target: 'http://36.140.118.172:88',//沈涛
|
||||
|
|
Loading…
Reference in New Issue