veaba / express-nuxt

【开发中……,需要配置mongodb才能使用本项目】Vue.js + express +nuxt.js +node.js + mongodb +websocket,web服务研究站。额外增加了小说爬虫功能(个人喜好)、vue官方样式markdown渲染。(github.io是静态页面,无法使用login等后台服务,后续再换成websocket或者jsonp与后台交互,然而看了GitHub.io 22s才加载完资源,凉凉)
https://veaba.github.io/express-nuxt/
MIT License
15 stars 2 forks source link

如何解决后端渲染的路径/username 与前端/_user重叠问题? #3

Open veaba opened 6 years ago

veaba commented 6 years ago

疑问1、每次跳转到/username 之后,去查后端,这时候可以在_user.vue的created中 去请求/api/username 的数据,再返回给auth.js 的req 疑问2、前端路由情况是没有req的

veaba commented 6 years ago

显然 无法这样处理,最后只是对让前端保留自己的,但依然需要对后端重载前端的路由。