完善 uniapp 接口地址配置

This commit is contained in:
xingyu 2022-08-08 10:41:02 +08:00
parent af73ec34a7
commit 30aa0baf65
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
module.exports = {
// baseUrl: 'http://localhost:8080',
baseUrl: 'http://localhost:48080',
baseApi: 'admin-api',
// 应用信息
appInfo: {
// 应用名称

View File

@ -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