Compare commits
2 Commits
e4c6f1f798
...
fdcf82e343
| Author | SHA1 | Date | |
|---|---|---|---|
| fdcf82e343 | |||
| 87ffaca398 |
@ -122,7 +122,7 @@ export function filterDynamicRoutes(routes) {
|
||||
}
|
||||
|
||||
export const loadView = (view) => {
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
if (process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'staging') {
|
||||
return (resolve) => require([`@/views/${view}`], resolve)
|
||||
} else {
|
||||
// 使用 import 实现生产环境的路由懒加载
|
||||
|
||||
Reference in New Issue
Block a user