Outlook加载项在某些执行环境中不起作用

发布于 2025-01-22 17:44:24 字数 1451 浏览 1 评论 0原文

我的产品有问题。 有人知道原因吗? 并请告诉我解决这个问题的解决方案。

执行环境 Outlook2019 Build Ver 2203(15028.20204) ※在其他执行环境中正常工作。

当您遵循以下步骤时,它总是会发生。

1)启动Outlook2019。2

)撰写一封电子邮件。

3)单击“发送”按钮。

4)发生错误。

我尝试调试。 我确认源代码中的“ localstorage.getItem()” API部分存在问题。 我期望将其值返回,但我已经确认它已返回为“ null”。 此问题仅发生在用“ displayDialogAsync”打开的对话框中,

原因可能是什么?

[office365发行说明]

https://learn.microsoft.com/en-us/officeupdates/update-history-fice-2019#retail-versions-oftions-office-office-2016-c2r-2016-c2r-2019

[显示对话框async api]

https://lealen.microsoft.com/en-us/office/dev/add-ins/develop/dialog-api-api-opi-infice-ack-add-ind-ins

[localstorage api ]

https:// https://developer.mozilla.mozilla.org/ja/webs/webs/webs/webs/webs/webs/webs/webs/webs/webs/webs/webs/webs/webs/webs/webs/webs/web/web/web/web = /api/window/localstorage

I'm having a problem with my product.
Does anyone know the cause?
And please tell me the solution to this problem.

Execution environment
 Outlook2019 build Ver 2203(15028.20204)
 ※Works correctly in other execution environments.

It always occurs when you follow the steps below.

1)Launch Outlook 2019.

2)Compose an email.

3)Click the "send" button.

4)An error occurs.

I tried debugging.
I Confirmed that there was a problem with the "localStorage.getItem()"API part in the source code.
I'm expecting the value to be returned, but I've confirmed that it's returned as "null".
This issue only occurs in dialogs opened with "displayDialogAsync"

What may be the cause?

[Office365 release notes]

https://learn.microsoft.com/en-us/OfficeUpdates/update-history-office-2019#retail-versions-of-office-2016-c2r-and-office-2019

[display dialog async API]

https://learn.microsoft.com/en-us/office/dev/add-ins/develop/dialog-api-in-office-add-ins

[localStorage API]

https://developer.mozilla.org/ja/docs/Web/API/Window/localStorage

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文