univer
univer copied to clipboard
[Bug] custom export menu button click export button api error
在您提交此问题之前,您是否检查了以下内容?
- [X] 这真的是个问题吗?
- [X] 我已经在 Github Issues 中搜索过了,但没有找到类似的问题。
受影响的包和版本
^0.2.6
复现链接
https://stackblitz.com/~/github.com/awesome-univer/sheets-vite-demo
预期行为
使用自定义菜单按钮 监听 command.id (use.sheet.command.export.file) 执行 univerAPI.exportXLSXBySnapshot() 方法 返回 fileData 然后通过 downloadFile(fileData, "test", "xlsx") 导入 excel 文件
实际行为
exportXLSXBySnapshot 返回 file 为 undefined
运行环境
Chrome
系统信息
/universer-api/exchange/task/1821854305443938387 接口 响应 一直处于 pending 状态. {error: {code: 1, message: "success"}, taskID: "1821854305443938387", status: "pending",…} error: {code: 1, message: "success"} export: {fileID: "", fileUrl: ""} status: "pending" taskID: "1821854305443938387"