This commit is contained in:
花裤衩
2020-01-09 17:13:52 +08:00
parent 3f38cde71d
commit b89a0526a1
5 changed files with 16 additions and 16 deletions

View File

@@ -57,7 +57,7 @@ export function mockXHR() {
// for mock server
const responseFake = (url, type, respond) => {
return {
url: new RegExp(`${process.env.VUE_APP_BASE_API}${url}`),
url: new RegExp(`${process.env.VUE_APP_BASE_API}/vue-element-admin${url}`),
type: type || 'get',
response(req, res) {
console.log('request invoke:' + req.path)