vue uni-app项目发布后刷新出现404错误的问题
这种情况需要配置IIS URL Rewrite,新增web.config文件,并填充以下内容,粘贴到wwwroot目录下。
Vue项目
<?xml version="1.0" encoding="UTF-8"?>作者:AI柚子 出处:http://www.cnblogs.com/ycm-up/"Handle History Mode and custom 404/500" stopProcessing="true"> "(.*)" /> "MatchAll"> "{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> "{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> "Rewrite" url="/" />