如何在 Outlook addins Office 365 中导航页面

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

我正在尝试在 Outlook 插件中导航到下一页。我还安装了react router dom。但它在 Outlook addins 中不起作用。将页面导航到新页面(如登录、注册、ets)的解决方案是什么。请帮助我解决此问题。

this is outlook addins

reactjs outlook office-js office-addins outlook-web-addins
1个回答
0
投票

如果加载项需要打开任务窗格的不同页面,您可以使用

window.location.replace
方法(或
window.location.href
)作为处理程序的最后一行。以下示例说明了可能的解决方案:

function processMessage(arg) {
    // message processing code goes here;
    window.location.replace("/newPage.html");
    // Alternatively ...
    window.location.href = "/newPage.html";
}

你也可以尝试做类似的事情:

window.open('https://yourwebsite.com')

请注意,如果域已在清单中列入白名单,则此操作应该有效。

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