首页 > 解决方案 > Handle Vue Route on Page Reload from MVC Controller

问题描述

Have a VUE SPA which is rendered from index.cshtml. i have an issue in which when users reload the page its is going to 404 page. how do i handle vue route from my mvc application.

标签: asp.net-mvcvue.js

解决方案


我认为这篇文章可以帮助你将 spa 与 .net MVC 结合起来:

https://weblog.west-wind.com/posts/2017/aug/07/handling-html5-client-route-fallbacks-in-aspnet-core


推荐阅读