// 路由懒加载 (原来写法) // export const loadView = (view) => { // return () => import(`@/views/${view}`) // } //改为新写法 export const loadView = (view) => { return (resolve) => require([`@/views/${view}`], resolve) };
// 路由懒加载 (原来写法) // export const loadView = (view) => { // return () => import(`@/views/${view}`) // } //改为新写法 export const loadView = (view) => { return (resolve) => require([`@/views/${view}`], resolve) };