asp.net-mvc - 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.
解决方案
我认为这篇文章可以帮助你将 spa 与 .net MVC 结合起来:
https://weblog.west-wind.com/posts/2017/aug/07/handling-html5-client-route-fallbacks-in-aspnet-core
推荐阅读
- sql - 在 SQL 中,如何从具有特定频率的表中选择一行,例如频率 = 2 或频率 = 4?
- python - 通过 OneLogin 示例提供 SSO 的 Python 应用程序 - 如何转移到生产环境?
- git - 使用`git rebase --rebase-merges`时“拒绝用坏名更新引用”
- python - 使用 Scapy 和 Python 读取加密的用户平面 PCAP 内容
- maxima - Maxima ezunits 中的比较(例如 <)在 Maxima 5.42.0 中比 5.41.0 慢很多
- python - 覆盖 get_queryset 时 DRF 抛出 django.core.exceptions.ImproperlyConfigured
- linux - 如何嵌套for循环,正确构造bash?
- javascript - 变量在函数链的末尾没有更新
- google-apps-script - 在电子表格上格式化货币价值应用脚本
- python - Python Websocket不会永远运行