Commit 30aa0baf656843feaa289255303a4206e3848f4e

Authored by xingyu
1 parent af73ec34

完善 uniapp 接口地址配置

yudao-ui-admin-uniapp/config.js
... ... @@ -2,6 +2,7 @@
2 2 module.exports = {
3 3 // baseUrl: 'http://localhost:8080',
4 4 baseUrl: 'http://localhost:48080',
  5 + baseApi: 'admin-api',
5 6 // 应用信息
6 7 appInfo: {
7 8 // 应用名称
... ...
yudao-ui-admin-uniapp/utils/request.js
... ... @@ -5,7 +5,7 @@ import errorCode from '@/utils/errorCode'
5 5 import { toast, showConfirm, tansParams } from '@/utils/common'
6 6  
7 7 let timeout = 10000
8   -const baseUrl = config.baseUrl + '/admin-api';
  8 +const baseUrl = config.baseUrl + config.baseApi;
9 9  
10 10 const request = config => {
11 11 // 是否需要设置 token
... ...