vue-cli icon indicating copy to clipboard operation
vue-cli copied to clipboard

Add vue-router to webpack and webpack simple templates

Open shusiwei opened this issue 10 years ago • 4 comments

在webpack-simple模板构建中,一个由路由懒加载的页面只会执行一次,第二次切换回来后这个页面将会是空白,而用webpack模板构建的代码却没有此问题,这是什么原因造成的?

shusiwei avatar Oct 16 '16 03:10 shusiwei

建议加上线上demo或者把你的“问题代码”,截图黏出来

chenEdgar avatar Oct 19 '16 02:10 chenEdgar

I'm not entirely sure what's being requested here, but from the title it looks like @shusiwei is asking for a template with the vue-router added. I agree. The webpack and webpack-simple templates are geared towards developing a SPA, which in my experience generally involves a router system. It would be nice to have a template with the router plumbed in.

elliotlarson avatar Oct 26 '16 18:10 elliotlarson

I agree this would be good as well. I'm having issues trying to get vue-router to work with webpack.

CalebKester avatar Oct 27 '16 14:10 CalebKester

Please open an issue on webpack template. It's not really related to vue-cli.

zigomir avatar Oct 30 '16 05:10 zigomir