Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xiaochegnzi0 opened this issue Jan 2, 2018 · 0 comments

Comments

@xiaochegnzi0
Copy link

引入
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();
});
请大神帮忙看看

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant