A base vue project with webpack
Geek Repo:Geek Repo
Github PK Tool:Github PK Tool
aansheng opened this issue 8 years ago · comments
图传不上,就直接上代码把,就是这段,webstom也不认,
router.beforeEach(() = > { window.scrollTo(0, 0); }); router.afterEach(() = > {} );
如果把代码注释掉就没问题。
https://github.com/vuejs/vue-router/tree/1.0/docs/zh-cn