完善 uniapp 接口地址配置
This commit is contained in:
parent
af73ec34a7
commit
30aa0baf65
|
@ -2,6 +2,7 @@
|
|||
module.exports = {
|
||||
// baseUrl: 'http://localhost:8080',
|
||||
baseUrl: 'http://localhost:48080',
|
||||
baseApi: 'admin-api',
|
||||
// 应用信息
|
||||
appInfo: {
|
||||
// 应用名称
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue