1、历史版本在update = 1的情况下没有预览按钮
2、历史版本在update = 0的情况下有预览按钮
3、APPID 为 SX20241030LCXNIC
UserPermission userPermission = UserPermission.builder()
.userId(AuthUtil.getUserId())
.read(true)
.update(true)
.rename(false)
.download(true)
.copy(false)
.comment(true)
.history(true)
.build();
return ProviderResponseEntity.ok(userPermission);
history返回的都是1,
const instance = WPS.init({
officeType: WPS.OfficeType.Writer,
appId: wpsConfig.value.param.AppID,
fileId: props.fileId as string,
token: user.value.accessToken,
mount: document.getElementById('wps-container') as HTMLElement,
mode: "nomal",
})
前端集成需要我传userId吗?