Commit 30aa0baf656843feaa289255303a4206e3848f4e
1 parent
af73ec34
完善 uniapp 接口地址配置
Showing
2 changed files
with
2 additions
and
1 deletions
yudao-ui-admin-uniapp/config.js
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 | ... | ... |