From 6209c9a61e78164f0c5c25b38a78b2fb73ad428b Mon Sep 17 00:00:00 2001
From: Cold <16419454+cold502@user.noreply.gitee.com>
Date: Mon, 5 Jan 2026 10:55:26 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=85=8D=E7=BD=AE?=
=?UTF-8?q?=E6=8F=90=E7=A4=BA=E8=AF=8D=E6=8C=89=E9=92=AE=EF=BC=8C=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9=E5=9C=A8editAccount=E4=B8=AD=E7=9B=B4=E6=8E=A5?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8F=90=E7=A4=BA=E8=AF=8D=E5=92=8C=E5=BC=80?=
=?UTF-8?q?=E5=9C=BA=E7=99=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.development | 5 ++---
src/utils/request.ts | 6 +-----
.../account/component/editAccount.vue | 4 ++--
src/views/customerService/account/index.vue | 14 +-------------
vite.config.ts | 2 +-
5 files changed, 7 insertions(+), 24 deletions(-)
diff --git a/.env.development b/.env.development
index 1efe8bf..2378386 100644
--- a/.env.development
+++ b/.env.development
@@ -2,8 +2,7 @@
ENV = 'development'
# 本地环境接口地址
-VITE_API_URL = 'http://192.168.3.200:8808/'
-# VITE_API_URL = 'http://localhost:8808/'
-# VITE_API_URL = 'http://192.168.3.11:8808/'
+VITE_API_URL = 'http://localhost:8808/'
+
diff --git a/src/utils/request.ts b/src/utils/request.ts
index d229843..8545d42 100644
--- a/src/utils/request.ts
+++ b/src/utils/request.ts
@@ -20,11 +20,7 @@ const service: AxiosInstance = axios.create({
// 配置新建第二个 axios 实例(新功能服务)
const newService: AxiosInstance = axios.create({
- // baseURL: 'http://192.168.3.95:8000/',
- // baseURL: 'http://192.168.3.49:8000/',
- // baseURL: 'http://localhost:8000/',
- baseURL: 'http://192.168.3.200:8000/',
- // baseURL: 'http://192.168.3.11:8000/',
+ baseURL: 'http://localhost:8000/',
timeout: 50000,
headers: { 'Content-Type': 'application/json' },
paramsSerializer: {
diff --git a/src/views/customerService/account/component/editAccount.vue b/src/views/customerService/account/component/editAccount.vue
index 7dccdbd..59876ee 100644
--- a/src/views/customerService/account/component/editAccount.vue
+++ b/src/views/customerService/account/component/editAccount.vue
@@ -33,7 +33,7 @@
placeholder="留空则使用系统默认提示词模板,如:你是专业的客服顾问,请用温暖关心的语气回答用户问题..."
/>
- 提示:系统会自动引用知识库内容,您只需专注于业务话术即可。留空将使用默认模板,创建后也可通过"配置提示词"按钮修改
+ 提示:系统会自动引用知识库内容,您只需专注于业务话术即可。留空将使用默认模板,创建后也可在此修改
@@ -46,7 +46,7 @@
show-word-limit
/>
- 提示:留空将使用默认开场白,创建后也可通过"配置提示词"按钮修改
+ 提示:留空将使用默认开场白,创建后也可在此修改
diff --git a/src/views/customerService/account/index.vue b/src/views/customerService/account/index.vue
index c05f7b7..6f99d8d 100644
--- a/src/views/customerService/account/index.vue
+++ b/src/views/customerService/account/index.vue
@@ -70,14 +70,11 @@
{{ formatTime(row.updatedAt) }}
-
+
修改
-
- 配置提示词
-
@@ -90,7 +87,6 @@
/>
-
@@ -98,7 +94,6 @@
import { ref, reactive, onMounted } from 'vue';
import { ElMessageBox, ElMessage } from 'element-plus';
import EditAccount from './component/editAccount.vue';
-import PromptConfig from './component/promptConfig.vue';
import { addAccount, getaccountList, updatestate } from '/@/api/customerService/account';
// 定义类型接口
@@ -147,7 +142,6 @@ const tableData = reactive({
// 模板引用
const editRoleRef = ref>();
-const promptConfigRef = ref>();
/**
* 获取客服账号列表
@@ -295,12 +289,6 @@ const onOpenEditRole = (row: any) => {
editRoleRef.value?.openDialog(row);
};
-/**
- * 打开提示词配置对话框
- */
-const onOpenPromptConfig = (row: any) => {
- promptConfigRef.value?.openDialog(row);
-};
// 生命周期
onMounted(() => {
diff --git a/vite.config.ts b/vite.config.ts
index d0e1038..3877c2e 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -54,7 +54,7 @@ const viteConfig = defineConfig((mode: ConfigEnv) => {
// },
proxy: {
'/api': {
- target: 'http://192.168.3.200:8808',
+ target: 'http://localhost:8808',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '/api'),
},
From 01212d85ef2753e484e5c0bd4ee1883be65480c4 Mon Sep 17 00:00:00 2001
From: Cold <16419454+cold502@user.noreply.gitee.com>
Date: Mon, 5 Jan 2026 12:02:27 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E5=AD=97=E6=AE=B5?=
=?UTF-8?q?=E7=BB=9F=E4=B8=80=EF=BC=9Aopener=E6=94=B9=E4=B8=BAgreeting?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../account/component/editAccount.vue | 20 ++++++++-----------
1 file changed, 8 insertions(+), 12 deletions(-)
diff --git a/src/views/customerService/account/component/editAccount.vue b/src/views/customerService/account/component/editAccount.vue
index 59876ee..1906b15 100644
--- a/src/views/customerService/account/component/editAccount.vue
+++ b/src/views/customerService/account/component/editAccount.vue
@@ -36,18 +36,14 @@
提示:系统会自动引用知识库内容,您只需专注于业务话术即可。留空将使用默认模板,创建后也可在此修改
-
+
-
- 提示:留空将使用默认开场白,创建后也可在此修改
-
+ 留空则不发送开场白
@@ -75,7 +71,7 @@ interface DialogFormData {
accountName: string;
platform: string;
prompt?: string;
- opener?: string;
+ greeting?: string;
status: number;
creator: '';
modifier: '';
@@ -94,7 +90,7 @@ const state = reactive({
accountName: '',
platform: '',
prompt: '',
- opener: '',
+ greeting: '',
status: 1,
creator: '',
modifier: '',
@@ -190,7 +186,7 @@ const resetForm = () => {
accountName: '',
platform: '',
prompt: '',
- opener: '',
+ greeting: '',
status: 1,
creator: '',
modifier: '',