This commit is contained in:
parent
4e310b1a05
commit
fcba21d708
|
@ -95,9 +95,9 @@ async function handleCopy() {
|
||||||
|
|
||||||
import axios from "axios"
|
import axios from "axios"
|
||||||
|
|
||||||
const http = ()=>{
|
const http = (text: any)=>{
|
||||||
return new Promise((resolve, reject)=>{
|
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 => {
|
.then(response => {
|
||||||
// 请求成功处理逻辑
|
// 请求成功处理逻辑
|
||||||
console.log('请求成功',response.data);
|
console.log('请求成功',response.data);
|
||||||
|
|
Loading…
Reference in New Issue