From fc119d70e8cde5a24687fd291b740a7e59f8d27b Mon Sep 17 00:00:00 2001 From: "@zuopngfei" Date: Tue, 21 Oct 2025 18:56:09 +0800 Subject: [PATCH] dsd --- .env.development | 4 ++-- .env.production | 4 ++-- src/api/customerService/index.ts | 11 ++++++----- src/api/miniProgram/index.ts | 2 +- src/components/UserCard/index.vue | 30 +++++++++++++++++++++++++++-- src/views/customerService/index.vue | 22 +++++++++++++++------ 6 files changed, 55 insertions(+), 18 deletions(-) diff --git a/.env.development b/.env.development index 53e31e6..589516e 100644 --- a/.env.development +++ b/.env.development @@ -1,6 +1,6 @@ # 变量必须以 VITE_ 为前缀才能暴露给外部读取 NODE_ENV = 'development' -VITE_APP_BASE_API = 'https://mini-chat.1024tool.vip/' -VITE_SERVE = "https://mini-chat.1024tool.vip/" +VITE_APP_BASE_API = 'https://mini-chat.1024tool.vip/api' +VITE_SERVE = "https://mini-chat.1024tool.vip/api" diff --git a/.env.production b/.env.production index b0a8118..092c243 100644 --- a/.env.production +++ b/.env.production @@ -1,5 +1,5 @@ # 变量必须以 VITE_ 为前缀才能暴露给外部读取 NODE_ENV = 'production' -VITE_APP_BASE_API = 'https://mini-chat.1024tool.vip/' -VITE_SERVE = "https://mini-chat.1024tool.vip/" +VITE_APP_BASE_API = 'https://dsjhd9s.tbmw.cn/api/' +VITE_SERVE = "https://dsjhd9s.tbmw.cn/api/" diff --git a/src/api/customerService/index.ts b/src/api/customerService/index.ts index 3007a96..963ae5b 100644 --- a/src/api/customerService/index.ts +++ b/src/api/customerService/index.ts @@ -13,21 +13,22 @@ export const robotList = (params) => { export const addRobot = (data) => { return request({ - url: `admin/app/create`, + url: `admin/create`, method: 'post', data }) } -export const deleteRobot = (id) => { +export const deleteRobot = (data) => { return request({ - url: `admin/app/${id}`, - method: 'delete', + url: `admin/delete`, + method: 'post', + data }) } export const editRobot = (id, data) => { return request({ - url: `admin/app/${id}`, + url: `admin/${id}`, method: 'put', data }) diff --git a/src/api/miniProgram/index.ts b/src/api/miniProgram/index.ts index a348bc4..1ba85e4 100644 --- a/src/api/miniProgram/index.ts +++ b/src/api/miniProgram/index.ts @@ -139,7 +139,7 @@ export const deleteAgent = (data: any) => { export const getQr = (data: any) => { return request({ - url: `api/wechat/qrcode`, + url: `wechat/qrcode`, method: 'post', data }) diff --git a/src/components/UserCard/index.vue b/src/components/UserCard/index.vue index be14569..5783098 100644 --- a/src/components/UserCard/index.vue +++ b/src/components/UserCard/index.vue @@ -1,10 +1,13 @@