diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9602286 --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +# 默认忽略的文件 +/shelf/ +/workspace.xml +# 基于编辑器的 HTTP 客户端请求 +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml + +unpackage/ +.idea +.hbuilderx diff --git a/api/index.js b/api/index.js index 8f64822..c67776f 100644 --- a/api/index.js +++ b/api/index.js @@ -2,7 +2,10 @@ import request from '@/request'; // 获取汇总 -export const getEnamellingSummaryData = () => request({ - url: '/mes/mesEnamellingWorkorder/getEnamellingSummaryData', +export const getAIResponse = (data) => request({ + method : 'POST', + url: '/chat', + data }); + diff --git a/config.js b/config.js index 328b182..2cb29f7 100644 --- a/config.js +++ b/config.js @@ -5,11 +5,7 @@ if (process.env.NODE_ENV === 'production') { baseUrl = 'http://106.227.91.181:9081/api'; } else { // 非生产环境代码 - // baseUrl = 'http://192.168.9.237:8182'; - // baseUrl = 'http://192.168.50.200:8080'; - // baseUrl = 'http://huaerda-api.24yt.com'; - // baseUrl = 'http://192.168.20.80:8080'; - baseUrl = 'http://106.227.91.181:9081/api'; + baseUrl = 'http://192.168.1.18:9020/api'; } const config = { baseUrl diff --git a/pages/index/index.vue b/pages/index/index.vue index 26d4cef..7453311 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,706 +1,601 @@ -