我正在尝试在 Outlook 插件中导航到下一页。我还安装了react router dom。但它在 Outlook addins 中不起作用。将页面导航到新页面(如登录、注册、ets)的解决方案是什么。请帮助我解决此问题。
如果加载项需要打开任务窗格的不同页面,您可以使用
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')
请注意,如果域已在清单中列入白名单,则此操作应该有效。