我的路线如下:
/something
它得到了,我补充道:
<script type="text/javascript" src="speedtest/js/jqxcore.js"></script>
<script type="text/javascript" src="speedtest/js/jqxdata.js"></script>
<script type="text/javascript" src="speedtest/js/jqxdraw.js"></script>
<script type="text/javascript" src="speedtest/js/jqxgauge.js"></script>
<script type="text/javascript" src="speedtest/js/jqxbuttons.js"></script>
<script type="text/javascript" src="speedtest/js/jqxslider.js"></script>
<script type="text/javascript" src="speedtest/js/demos.js"></script>
并且路线在当地,并且它是:
/en/something
/fa/something
当我本地化没有语言环境的页面时,资产正确加载但是当我用locales加载它时我遇到了这些错误:
Loading failed for the <script> with source “http://localhost:3000/en/speedtest/js/jquery-1.11.1.min.js”.
findex:170
Loading failed for the <script> with source “http://localhost:3000/en/speedtest/js/tooltip.min.js”.
findex:171
Loading failed for the <script> with source “http://localhost:3000/en/speedtest/js/network.js”.
findex:172
Loading failed for the <script> with source “http://localhost:3000/en/speedtest/js/main.js”.
findex:173
Loading failed for the <script> with source “http://localhost:3000/en/speedtest/js/jqxcore.js”.
findex:174
Loading failed for the <script> with source “http://localhost:3000/en/speedtest/js/jqxdata.js”.
findex:175
Loading failed for the <script> with source “http://localhost:3000/en/speedtest/js/jqxdraw.js”.
findex:176
Loading failed for the <script> with source “http://localhost:3000/en/speedtest/js/jqxgauge.js”.
findex:177
Loading failed for the <script> with source “http://localhost:3000/en/speedtest/js/jqxbuttons.js”.
findex:178
Loading failed for the <script> with source “http://localhost:3000/en/speedtest/js/jqxslider.js”.
findex:179
Loading failed for the <script> with source “http://localhost:3000/en/speedtest/js/demos.js”.
我想在两种状态下从js源路径中删除en和fa 任何想法?