2 Commits 6ce7639e57 ... 2aee990cf0

Autor SHA1 Nachricht Datum
  liutian 2aee990cf0 add: UI 新增 closeDocument API vor 3 Monaten
  liutian 6ce7639e57 add: UI 新增 closeDocument API vor 3 Monaten

+ 1 - 1
packages/webview/src/components/DocumentContainer/DocumentContainer.vue

@@ -174,7 +174,7 @@ window.instance.initOptions = async (options) => {
   // const res = await initConfig({
   //   license: 'NjY0ZGE0N2ZhYTBiZQ=='
   // })
-  if (showUploadButton in options) {
+  if ('showUploadButton' in options) {
     useViewer.setShowUploadButton(options.showUploadButton)
   }
   const webviewerMode = !!(options && options.webviewerServer) ? options.webviewerServer : 'Standalone'