Skip to content

Commit 3dc476c

Browse files
committed
api proxy bug
1 parent 7218cc0 commit 3dc476c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

config/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ module.exports = {
4242
'/payapi',
4343
'/admin',
4444
'/statis',
45+
'/img',
4546
],
4647
// CSS Sourcemaps off by default because relative paths are "buggy"
4748
// with this option, according to the CSS-Loader README

src/config/env.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ let routerMode = 'history';
1111
let baseImgPath;
1212

1313
if (process.env.NODE_ENV == 'development') {
14-
baseUrl = 'http://localhost:8001';
15-
baseImgPath = 'http://localhost:8001/img/';
14+
baseUrl = 'http://localhost:8002';
15+
baseImgPath = 'http://localhost:8002/img/';
1616
}else{
17-
baseUrl = 'http://cangdu.org:8001';
17+
baseUrl = 'http://cangdu.org:8001';
1818
baseImgPath = 'http://cangdu.org:8001/img/';
1919
}
2020

0 commit comments

Comments
 (0)