SmartTable 控件自 1.74 起出现内部加载资源错误
SmartTable control has internal load resource error since 1.74
我在某些 SAP Cloud Foundry UI5 应用程序中使用 'SmartTable' 控件。
大约一周后,table 控件无法再使用当前版本 (1.74.1) 呈现,因为以下 XHR 加载失败:
https://sapui5.hana.ondemand.com/resources/sap/ui/table/TableExtension.js
如果我强制使用旧版本 - 例如“1.73.1” - 那么它工作正常并且找到上述资源。
我不知道的 'Smart Table' 概念是否发生了变化,或者这是库本身的问题?
我检查了 UI5 的更改日志,但没有看到其中提到的任何内容。
我没有看到获取 sap/ui/table/TableExtension.js
失败的错误消息。
尝试打开此 Demo Kit sample in an incognito window or in Guest mode(?)、select 适当的财政年度(例如 1970...2020
),然后按 Go。
在 commit:5e3848d
(available since 1.74), the file TableExtension.js
was refactored. But that should not be causing the 404 issue. According to Andreas Kunz 中,UI5 在 CDN 中存在缓存失效问题。
此类缓存问题影响您的应用程序的事实表明您的应用程序 bootstrapping 没有 CDN URL 中的具体版本。要解决此问题,bootstrap UI5 资源(例如 index.html
):
配一个specific version:
<脚本 id="sap-ui-bootstrap" src="https://ui5.sap.com<strong>/1.74.1</strong>/resources/sap-ui-core.js">
或利用 Cache Buster:
<脚本 id="sap-ui-bootstrap" src="resources<strong>/sap-ui-cachebuster</strong>/sap-ui-core.js">
改进 bootstrap 步骤后,table 应该可以再次运行,不会出现错误。
手动,您可以通过长按重新加载按钮和selecting 清空缓存并硬重新加载来清空缓存,如此guide(视频)。
我在某些 SAP Cloud Foundry UI5 应用程序中使用 'SmartTable' 控件。
大约一周后,table 控件无法再使用当前版本 (1.74.1) 呈现,因为以下 XHR 加载失败:
https://sapui5.hana.ondemand.com/resources/sap/ui/table/TableExtension.js
如果我强制使用旧版本 - 例如“1.73.1” - 那么它工作正常并且找到上述资源。
我不知道的 'Smart Table' 概念是否发生了变化,或者这是库本身的问题?
我检查了 UI5 的更改日志,但没有看到其中提到的任何内容。
我没有看到获取 sap/ui/table/TableExtension.js
失败的错误消息。
尝试打开此 Demo Kit sample in an incognito window or in Guest mode(?)、select 适当的财政年度(例如 1970...2020
),然后按 Go。
在 commit:5e3848d
(available since 1.74), the file TableExtension.js
was refactored. But that should not be causing the 404 issue. According to Andreas Kunz 中,UI5 在 CDN 中存在缓存失效问题。
此类缓存问题影响您的应用程序的事实表明您的应用程序 bootstrapping 没有 CDN URL 中的具体版本。要解决此问题,bootstrap UI5 资源(例如 index.html
):
配一个specific version:
<脚本 id="sap-ui-bootstrap" src="https://ui5.sap.com<strong>/1.74.1</strong>/resources/sap-ui-core.js">
或利用 Cache Buster:
<脚本 id="sap-ui-bootstrap" src="resources<strong>/sap-ui-cachebuster</strong>/sap-ui-core.js">
改进 bootstrap 步骤后,table 应该可以再次运行,不会出现错误。
手动,您可以通过长按重新加载按钮和selecting 清空缓存并硬重新加载来清空缓存,如此guide(视频)。