Office.js | excel加载项| redux分派操作在excel桌面上不起作用
我正在使用Office.js开发Excel加载项。使用redux分派操作。 外接程序在使用office 365的所有浏览器中都能工作,但在桌面excel上无法执行分派操作 情景:Office.js | excel加载项| redux分派操作在excel桌面上不起作用,excel,reactjs,office365,office-js,excel-addins,Excel,Reactjs,Office365,Office Js,Excel Addins,我正在使用Office.js开发Excel加载项。使用redux分派操作。 外接程序在使用office 365的所有浏览器中都能工作,但在桌面excel上无法执行分派操作 情景: 打开Excel加载项 单击任务窗格中的“继续”按钮。(使用redux调度重定向到路由不工作) 代码如下: index.js 在登录页上有按钮,点击按钮调用以下功能: const onNextClick = () => { props.onButtonClicked(`/social-login`)
const onNextClick = () => {
props.onButtonClicked(`/social-login`);
};
onButtonClicked在我的操作文件中出现,我使用mapDispatchToProps连接包装器
const mapDispatchToProps = dispatch => ({
...bindActionCreators(
{
onButtonClicked,
},
dispatch,
),
}))
和OnButtonClick函数,该函数只需按如下所示的路径:
import { push } from 'react-router-redux';
export const onButtonClicked = redirectUrl => dispatch => {
dispatch(push(path));
};
上述实现可在所有浏览器上运行。
但在桌面excel上出现以下错误:
有人能帮忙检查一下这个问题吗。。花很多时间
const mapDispatchToProps = dispatch => ({
...bindActionCreators(
{
onButtonClicked,
},
dispatch,
),
import { push } from 'react-router-redux';
export const onButtonClicked = redirectUrl => dispatch => {
dispatch(push(path));
};