radon-ui icon indicating copy to clipboard operation
radon-ui copied to clipboard

引入radon-ui后,在router.beforeEach添加 transition.to.router.app.$Loading.start();报错如下

Open xiaochegnzi0 opened this issue 7 years ago • 0 comments

引入 import { RadonInstall } from 'radon-ui'于main.js中

Vue.use(RadonInstall, { LoadingBar: true }) 在beforeEach中添加loading报错 “ Cannot read property 'router' of undefined” router.beforeEach((transition) => { transition.to.router.app.$Loading.start(); transition.next(); }); 请大神帮忙看看

xiaochegnzi0 avatar Jan 02 '18 03:01 xiaochegnzi0