
import VueRouterConfig from './vue-route-config';
var VueRouterConfig = require('./vue-route-config');
VueRouterConfig(router);
使用require的会提示 'VueRouterConfig' not a function

Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
VueRouterConfig.VueRouterConfigrequire和import模块文件的导出方式不一样。贴个
vue-route-config的简略代码呗