添加 basePath 配置,不然非根目录情况,无法访问

This commit is contained in:
sin
2019-04-01 17:29:36 +08:00
parent 2e2ceaf38b
commit 8e7d72ce71
2 changed files with 5 additions and 3 deletions

View File

@@ -65,7 +65,7 @@ if (APP_TYPE === 'site') {
export default {
// add for transfer to umi
base: basePath,
// publicPath: basePath,
publicPath: basePath,
plugins,
define: {
APP_TYPE: APP_TYPE || '',