From 30aa0baf656843feaa289255303a4206e3848f4e Mon Sep 17 00:00:00 2001 From: xingyu Date: Mon, 8 Aug 2022 10:41:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=20uniapp=20=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=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 --- yudao-ui-admin-uniapp/config.js | 1 + yudao-ui-admin-uniapp/utils/request.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/yudao-ui-admin-uniapp/config.js b/yudao-ui-admin-uniapp/config.js index a6e334526..410abe155 100644 --- a/yudao-ui-admin-uniapp/config.js +++ b/yudao-ui-admin-uniapp/config.js @@ -2,6 +2,7 @@ module.exports = { // baseUrl: 'http://localhost:8080', baseUrl: 'http://localhost:48080', + baseApi: 'admin-api', // 应用信息 appInfo: { // 应用名称 diff --git a/yudao-ui-admin-uniapp/utils/request.js b/yudao-ui-admin-uniapp/utils/request.js index 692011a8c..4799e7467 100644 --- a/yudao-ui-admin-uniapp/utils/request.js +++ b/yudao-ui-admin-uniapp/utils/request.js @@ -5,7 +5,7 @@ import errorCode from '@/utils/errorCode' import { toast, showConfirm, tansParams } from '@/utils/common' let timeout = 10000 -const baseUrl = config.baseUrl + '/admin-api'; +const baseUrl = config.baseUrl + config.baseApi; const request = config => { // 是否需要设置 token