添加 basePath 配置,不然非根目录情况,无法访问
This commit is contained in:
@@ -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 || '',
|
||||
|
||||
Reference in New Issue
Block a user