Skip to content

Commit cbab4d5

Browse files
committed
refactor: 增加内置接收数据处理逻辑
1 parent 621cdef commit cbab4d5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/components/BootstrapBlazor.UniverSheet/wwwroot

src/components/BootstrapBlazor.UniverSheet/wwwroot/plugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ export class DefaultPlugin extends Plugin {
2727
}
2828

2929
receiveData(payload) {
30-
const { messageName, commandName, data } = payload;
30+
const { messageName, commandName, data, workbookData } = payload;
3131
if (messageName === null) {
3232
if (commandName === 'SetWorkbook') {
33-
this.setWorkbookData(JSON.parse(data));
33+
this.setWorkbookData(JSON.parse(workbookData));
3434
}
3535
else if (commandName === 'GetWorkbook') {
3636
return this.getWorkbookData();

0 commit comments

Comments
 (0)