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