Browse Source

[feat][ai生涯访谈][list统一使用get请求]

hizhangling 1 month ago
parent
commit
28d48d0385
2 changed files with 7 additions and 5 deletions
  1. 4 4
      src/api/xjc-integratedmachine/environment/ai-career.js
  2. 3 1
      vite.config.js

+ 4 - 4
src/api/xjc-integratedmachine/environment/ai-career.js

@@ -10,8 +10,8 @@ export function getHotOccupationList(data) {
 export function getCareerChatRecordList(data) {
     return request({
         url: '/ai/career/chat/record/list',
-        method: 'post',
-        data : data
+        method: 'get',
+        params : data
     })
 }
 export function getOccupationByKeyword(data) {
@@ -35,7 +35,7 @@ export function addCareerChatRecord(data) {
 export function getQuestionBankList(data) {
     return request({
         url: '/ai/question/bank/list',
-        method: 'post',
-        data : data
+        method: 'get',
+        params : data
     })
 }

+ 3 - 1
vite.config.js

@@ -47,7 +47,9 @@ export default defineConfig(({ mode, command }) => {
         // https://cn.vitejs.dev/config/#server-proxy
         '/dev-api': {
           target: 'http://localhost:8080',
-          // target: 'http://192.168.3.169:8080',//临时11
+          // target: 'http://test.chuiinxgk.com',//服务器
+          // target: 'http://192.168.3.100:8080',//服务器
+
           changeOrigin: true,
           rewrite: (p) => p.replace(/^\/dev-api/, '')
         }