[英]Vue.js not scaling after deployment to windows server 2019 IIS
你是什么意思 vue.js 没有缩放? 第二个组件显示异常,是不是?
Javascript 代码片段工作可能有问题。
您是否在 IIS 中安装了 URL 重写扩展并在webconfig
文件中添加以下规则?
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Handle History Mode and custom 404/500" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.html" />
</rule>
</rules>
</rewrite>
这是 URL 重写扩展。
https://www.iis.net/downloads/microsoft/url-rewrite
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.