Commit 747577e0 by liimin

修改chatgpt后端接口

1 parent f022e061
......@@ -141,7 +141,7 @@ const activityPage = params => {
})
}
const gpt = async params => {
const response = await fetch('http://192.168.1.134:8090/ai/chat', {
const response = await fetch('http://192.168.1.136:8090/ai/chat', {
body: JSON.stringify({ content: params }),
headers: {
'content-type': 'application/json'
......
......@@ -10,7 +10,7 @@
<span></span>
</div>
<!-- <GLButton size="small" @click="handleExport" fn="导出">导出</GLButton> -->
<el-button @click="handleDrawer">gpt</el-button>
<el-button @click="handleDrawer">ChatGPT</el-button>
</div>
<GLTable @setTableFinishFun="setTableFinishFun" v-if="isReload" ref="clientManage" :hasNum="true" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchFormTable" :noDataImg="url" :pageConf="pageConf" :tableParams="tableParams">
<span slot="customerName" slot-scope="scope">
......@@ -722,10 +722,10 @@ export default {
if (!this.gptRequest && !this.keys.subject) {
return false
}
if(this.$refs.orderform){
if (this.$refs.orderform) {
this.$refs.orderform.resetFields()
}
this.gptRequest = false
this.drawer = false
let list = this.$refs.clientManage.data
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!