static/js/vendor.js net::ERR_ABORTED 404

建议 2 1148
chyitec
chyitec 2021-08-16
一、执行 npm run build Build complete. Tip: built files are meant to be served over an HTTP server. Opening index.html over file:// won't work. [16:47:57] Finished 'build' after 2.02 min [16:47:57] Starting 'create:versionCatalog'... [16:48:02] Finished 'create:versionCatalog' after 4.8 s [16:48:02] Starting 'replace:cdnUrl'... [16:48:02] Finished 'replace:cdnUrl' after 346 ms [16:48:02] Starting 'replace:version'... [16:48:02] Finished 'replace:version' after 17 ms [16:48:02] Starting 'concat:config'... [16:48:02] Finished 'concat:config' after 61 ms [16:48:02] Starting 'cleanBuild'... [16:48:03] Finished 'cleanBuild' after 632 ms [16:48:03] Finished 'default' after 2.12 min 请按任意键继续. . . 二、打包好的 dist 部署到tomcat9中,访问页面 空白 2api?v=2.0&ak=FffSlBYSo22DMP43GvazHq0B8bWckVfK:1 A parser-blocking, cross site (i.e. different eTLD+1) script, http://api.map.baidu.com/getscript?v=2.0&ak=FffSlBYSo22DMP43GvazHq0B8bWckVfK&services=&t=20210803154751, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details. (anonymous) @ api?v=2.0&ak=FffSlBYSo22DMP43GvazHq0B8bWckVfK:1 (anonymous) @ api?v=2.0&ak=FffSlBYSo22DMP43GvazHq0B8bWckVfK:1 index.js?t=1629104262867:82 GET http://127.0.0.1:2020/202108161654/static/js/vendor.js net::ERR_ABORTED 404 createScripts @ index.js?t=1629104262867:82 _script.onload @ index.js?t=1629104262867:80 load (async) createScripts @ index.js?t=1629104262867:78 _script.onload @ index.js?t=1629104262867:80 load (async) createScripts @ index.js?t=1629104262867:78 document.onreadystatechange @ index.js?t=1629104262867:84 127.0.0.1/:1 GET http://127.0.0.1:2020/202108161654/ 404
回帖
  • chyitec
    chyitec (楼主)
    2021-08-16
    //window.SITE_CONFIG.cdnUrl + '/static/js/vendor.js', 修改为下面的0.js window.SITE_CONFIG.cdnUrl + '/static/js/0.js',
    0 回复
  • chyitec
    chyitec (楼主)
    2021-08-16
    不能自己结帖??
    0 回复