Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.3k views
in Technique[技术] by (71.8m points)

vue-router 如何使路由立即跳转

/home/list/listA

如上, 在当前这个路径刷新时, 在home组件中有一些业务判断, 需要用 this.$router 进行跳转, 但是, 此时并没有立即跳转, 而是再执行了, listlistA 页面的代码后才跳转, 怎么能不要执行后面的代码, 而是立即在home组件就跳转到其他页面


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

beforeCreate


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...