Commit 747577e0 by liimin

修改chatgpt后端接口

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