【问题标题】:After Magento 2.4.3 install css and js not loaded. In url 'pub' missingMagento 2.4.3 安装后未加载 css 和 js。在 url 'pub' 中丢失
【发布时间】:2021-12-08 03:00:58
【问题描述】:

在 bin/magento setup:static-content:deploy 之后 在 Magento 前端 CSS 和 JS 未加载。在源代码中我发现

url 显示 href="https://localhost/love/static/frontend/Infortis/ultimo/en_GB/css/print.min.css" /> 但应该是 href="https://localhost/love/pub/static/frontend/Infortis/ultimo/en_GB/css/print.min.css" />

请任何人帮助我!!!

谢谢,

【问题讨论】:

    标签: javascript php css magento localhost


    【解决方案1】:

    当您当时安装 Magento 时,您需要在基本 URL 中提及 /pub

    现在您可以在 core_config_data 数据库表中提及它,然后运行 ​​php bin/magento setup: upgrade em> 命令来解决问题。

    See Screenshot

    【讨论】:

      猜你喜欢
      • 2018-06-13
      • 1970-01-01
      • 1970-01-01
      • 2019-06-23
      • 1970-01-01
      • 1970-01-01
      • 2012-03-01
      • 2021-06-15
      • 1970-01-01
      相关资源
      最近更新 更多