diff --git a/src/views/chat/components/Message/index.vue b/src/views/chat/components/Message/index.vue index e057c5f..918f3ab 100644 --- a/src/views/chat/components/Message/index.vue +++ b/src/views/chat/components/Message/index.vue @@ -95,9 +95,9 @@ async function handleCopy() { import axios from "axios" -const http = ()=>{ +const http = (text: any)=>{ return new Promise((resolve, reject)=>{ - axios.post('https://chat.lihaink.cn/index/tts',{data: '你好'}) + axios.post('https://chat.lihaink.cn/index/tts',{data: text}) .then(response => { // 请求成功处理逻辑 console.log('请求成功',response.data);