Browse Source

fix(websocket bux): bug

master
wbfsa 5 years ago
parent
commit
4eda52ac89
  1. 5
      src/controllers/server.js
  2. 2
      src/index.html

5
src/controllers/server.js

@ -124,7 +124,10 @@ const server = {
let msg = pako.gzip(encodeURIComponent(JSON.stringify(d)), { to: "string" });
_this.websocket.send(msg);
if(_this.websocket!=null){
_this.websocket.send(msg);
}
},
websocket: null,
wxErrorCount: 0,

2
src/index.html

@ -37,6 +37,8 @@
allowEdit:true,
forceCalculation:false,
plugins: ['chart'],
allowUpdate:true,
updateUrl:"www.baidu.com",
data: [sheetCell,sheetFormula,sheetConditionFormat,sheetTable,sheetSparkline,sheetComment,sheetPivotTableData,sheetPivotTable,sheetChart]
})

Loading…
Cancel
Save