Skip to content

在Vue项目中,路由跳转后失效 #35

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

Open
wjwei-handsome opened this issue Nov 19, 2021 · 2 comments
Open

在Vue项目中,路由跳转后失效 #35

wjwei-handsome opened this issue Nov 19, 2021 · 2 comments

Comments

@wjwei-handsome
Copy link

你好,我在一个vue项目中的页面A引入后(引入方法为import '@triggerjs/trigger/dist/bundle') ;之后我从页面A路由跳转到页面B,之后再从页面B路由跳转到页面A时,该JS库失效,请问该如何解决?

@DominguitoLamo
Copy link
Contributor

DominguitoLamo commented Nov 20, 2021

由于trigger是在窗口页面加载完成触发事件初始化,意味着单页面应用的路由跳转会无法触发初始化事件,日后会解决该问题。

@wjwei-handsome
Copy link
Author

由于trigger是在窗口页面加载完成触发事件初始化,意味着单页面应用的路由跳转会无法触发初始化事件,日后会解决该问题。

谢谢~ 期待新版本

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

2 participants