Commit 7b2f948d4f41cbb2f241ab9bf57597e2b6515730
1 parent
eeaacc99b8
Exists in
master
试着做一次网络请求
Showing
1 changed file
with
17 additions
and
0 deletions
Show diff stats
src/vue.config.js
File was created | 1 | // const webpackApiMocker = require('mocker-api') | |
2 | |||
3 | // module.exports = { | ||
4 | // devServer: { | ||
5 | // before(app) { | ||
6 | // webpackApiMocker(app, path.resolve('./mock/index.js')) | ||
7 | // }, | ||
8 | // proxy: { | ||
9 | // '/app/prod/list': { | ||
10 | // target: 'https://api.glass.xiuyetang.com/', | ||
11 | // pathRewrite: { | ||
12 | // '^/app': '' | ||
13 | // } | ||
14 | // } | ||
15 | // }, | ||
16 | // } | ||
17 | // } |