We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48e8855 commit 9a051baCopy full SHA for 9a051ba
config.js
@@ -2,6 +2,7 @@
2
module.exports = {
3
// baseUrl: 'http://localhost:8080',
4
baseUrl: 'http://localhost:48080',
5
+ baseApi: 'admin-api',
6
// 应用信息
7
appInfo: {
8
// 应用名称
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;
9
10
const request = config => {
11
// 是否需要设置 token
0 commit comments