1. 首页>
  2. 技术文章>
  3. vue刷新空白的解决方法

vue刷新空白的解决方法

4/21/20 9:02:26 AM 浏览 1803 评论 0

vue

如果是IIS上部署,添加一个web.config,内容:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <httpErrors>
            <remove statusCode="404" subStatusCode="-1" />
            <error statusCode="404" prefixLanguageFilePath="" path="/index.html" responseMode="ExecuteURL" />
        </httpErrors>
    </system.webServer>
</configuration>


网友讨论