From 3202e9c08b1ece1fe0ede194a57048cbd5209e34 Mon Sep 17 00:00:00 2001 From: JinxChen <2183691628@qq.com> Date: Thu, 5 Jan 2023 14:53:55 +0800 Subject: [PATCH] =?UTF-8?q?feat=20-=20=E6=B7=BB=E5=8A=A0=E7=BE=A4=E5=8F=91?= =?UTF-8?q?=20=20=20-=20=E5=8F=96=E6=B6=88=20=E6=A8=A1=E6=9D=BF=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E4=B8=BA=E7=A9=BA=E6=97=B6=E6=98=BE=E7=A4=BA=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E6=A8=A1=E6=9D=BFid=20=20=20-=20=E5=A2=9E=E5=8A=A0=20?= =?UTF-8?q?=E6=AD=A3=E5=BC=8F=E7=8E=AF=E5=A2=83=E7=9A=84=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 11 ++++++++-- src/utils/model.js | 4 ++-- src/utils/request-wx-fans.js | 18 +++++++++++------ .../message-manage/main/add-mass/index.vue | 20 +++++++++---------- 4 files changed, 32 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index b25c4a0..8d2409e 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ @@ -121,4 +121,11 @@ feat - 添加群发 - 增加 动态创建消息模板 - 群发列表 - - 修复 分页异常的问题 \ No newline at end of file + - 修复 分页异常的问题 + +## v1.0.8 +`2023.1.5` +feat +- 添加群发 + - 取消 模板列表为空时显示默认模板id + - 增加 正式环境的接口地址配置 \ No newline at end of file diff --git a/src/utils/model.js b/src/utils/model.js index eb1b14a..72a2d9d 100644 --- a/src/utils/model.js +++ b/src/utils/model.js @@ -1,8 +1,8 @@ /* * @Date: 2021-11-30 15:09:25 * @LastEditors: JinxChen - * @LastEditTime: 2022-09-21 14:18:59 + * @LastEditTime: 2022-12-12 11:35:33 * @FilePath: \TelpoUserManageAdmin\src\utils\model.js * @description: 版本号 */ -export const VersionModel = '1.0.7'; +export const VersionModel = '1.0.8'; diff --git a/src/utils/request-wx-fans.js b/src/utils/request-wx-fans.js index 034e603..8c6b982 100644 --- a/src/utils/request-wx-fans.js +++ b/src/utils/request-wx-fans.js @@ -1,7 +1,7 @@ /* * @Date: 2021-12-08 15:59:46 * @LastEditors: JinxChen - * @LastEditTime: 2022-09-15 17:30:14 + * @LastEditTime: 2023-01-05 14:53:02 * @FilePath: \TelpoUserManageAdmin\src\utils\request-wx-fans.js * @description: */ @@ -13,11 +13,17 @@ import store from '@/store' /* import { getToken } from '@/utils/auth' */ // create an axios instance +// 区分正式和测试环境,注意 :http://localhost:9528/ 是你本地项目的启动地址 +const currentUrl = window.location.href.split('#'); // 当前url,因项目部署方式不同,用当前url区分正式环境和测试环境 +const testUrlList = [ + 'http://ping.ssjlai.com', + 'http://localhost:9528' +]; +const proUrl = 'http://47.116.67.214:8766/api'; //正式环境接口地址 +const isTest = testUrlList.some(item => { return currentUrl[0].indexOf(item) > -1; }); const service = axios.create({ - baseURL: /* process.env.VUE_APP_BASE_API */'http://ping.ssjlai.com:8008/api/', // url = base url + request url - // withCredentials: true, // send cookies when cross-domain requests - /* timeout: 5000 */ // request timeout -}) + baseURL: process.env === 'test' || process.env === 'development' ? 'http://ping.ssjlai.com:8008/api/' : isTest ? 'http://ping.ssjlai.com:8008/api/': proUrl, +}); // request interceptor service.interceptors.request.use( @@ -27,7 +33,7 @@ service.interceptors.request.use( /* if (store.getters.token) { config.headers['AuthToken'] = store.getters.token; } */ - return config + return config; }, error => { // do something with request error diff --git a/src/views/message-manage/main/add-mass/index.vue b/src/views/message-manage/main/add-mass/index.vue index 271dd16..f8c7d54 100644 --- a/src/views/message-manage/main/add-mass/index.vue +++ b/src/views/message-manage/main/add-mass/index.vue @@ -1,7 +1,7 @@ @@ -72,10 +72,8 @@