完善 uniapp 接口地址配置

master
xingyu 3 years ago
parent 48e885541d
commit 9a051ba70a
  1. 1
      config.js
  2. 2
      utils/request.js

@ -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…
Cancel
Save