初始化sdk、传入在线文档的访问地址参数是什么?

阅读次数 2

<img src="https://solution-community.wps.cn/uploads/post/5twLXTEgjLG.png" alt="image.png"/>

<img src="https://solution-community.wps.cn/uploads/post/5twMhHhd1su.png" alt="image.png"/>

我根据文档:https://solution.wps.cn/docs/web/quick-start.html (前端SDK) 但是我没找到这个具体的在线文档访问地址参数在哪里 文档有变过吗? 还是我配置错了、以下代码是我初始化的对象:

const instance = (window as any).WebOfficeSDK.init({
      officeType: (window as any).WebOfficeSDK.OfficeType.Writer,
      appId: 'xxx',
      fileId: 'a_1',
      mount: webOffice.current,
      mode: 'simple',
      token: 'WPS-2:xxx:68ff33e825bbf7eedae88ca78c71dbe289091708'
    });
0 Answers