Chrome MacOS 上不显示页面

问题描述 投票:0回答:1

我有一个正在使用 MEAN 堆栈进行生产的网站。一个问题是,即使在我硬刷新之后,chrome 也会将我的新页面之一显示为空白屏幕。不过,我可以在 Firefox 和其他浏览器中看到该页面。

这对于我网站的现有用户来说已经成为一个问题,他们现在只能看到空白屏幕。有没有办法我可以编写一些代码来完全防止这种情况发生?

为了提供更多上下文,我们在该页面中从 API 获取用户数据并显示它。数据是表单数据,例如电子邮件、姓名等

main.84165a1abe8e797f.js:1 ERROR TypeError: Cannot read properties of undefined (reading 'enabled')
    at template (main.84165a1abe8e797f.js:1:545543)
    at Gv.runInContext (main.84165a1abe8e797f.js:1:61874)
    at Zv (main.84165a1abe8e797f.js:1:64106)
    at fy (main.84165a1abe8e797f.js:1:73306)
    at py (main.84165a1abe8e797f.js:1:74492)
    at fI (main.84165a1abe8e797f.js:1:74356)
    at gy (main.84165a1abe8e797f.js:1:74633)
    at fy (main.84165a1abe8e797f.js:1:74017)
    at py (main.84165a1abe8e797f.js:1:74492)
    at hy (main.84165a1abe8e797f.js:1:74326)

此错误在控制台中显示大约 5 次。

google-chrome caching mean-stack
1个回答
0
投票

MacOS(计算机和手机)上的 Chrome 使用 mac 特定引擎/webkit 进行渲染。

最近的更新似乎破坏了自定义 CSS“显示”值。

尝试将任何显示值更改为标准“块”、“内联”等,看看是否有帮助。

© www.soinside.com 2019 - 2024. All rights reserved.