瀏覽代碼

测试打印水印问题,是否执行

chenrui 3 年之前
父節點
當前提交
8cfd586316
共有 2 個文件被更改,包括 4 次插入3 次删除
  1. 1 1
      babel.config.js
  2. 3 2
      src/libs/LodopFuncs.js

+ 1 - 1
babel.config.js

@@ -2,7 +2,7 @@ const IS_PROD = ['production', 'prod'].includes(process.env.NODE_ENV)
 
 
 const plugins = []
 const plugins = []
 if (IS_PROD) {
 if (IS_PROD) {
-  plugins.push('transform-remove-console')
+  // plugins.push('transform-remove-console')
 }
 }
 
 
 module.exports = {
 module.exports = {

+ 3 - 2
src/libs/LodopFuncs.js

@@ -72,7 +72,7 @@ function getLodop (oOBJECT, oEMBED) {
   var strCLodopInstall_2 = "<br>(若此前已安装过,可<a href='CLodop.protocol:setup' target='_self'>点这里直接再次启动</a>)"
   var strCLodopInstall_2 = "<br>(若此前已安装过,可<a href='CLodop.protocol:setup' target='_self'>点这里直接再次启动</a>)"
   var strCLodopInstall_3 = ',成功后请刷新本页面。</font>'
   var strCLodopInstall_3 = ',成功后请刷新本页面。</font>'
   var strCLodopUpdate = "<br><font color='#FF00FF'>Web打印服务CLodop需升级!点击这里<a href='http://www.lodop.net/demolist/CLodop_Setup_for_Win32NT.zip' target='_self'>执行升级</a>,升级后请刷新页面。</font>"
   var strCLodopUpdate = "<br><font color='#FF00FF'>Web打印服务CLodop需升级!点击这里<a href='http://www.lodop.net/demolist/CLodop_Setup_for_Win32NT.zip' target='_self'>执行升级</a>,升级后请刷新页面。</font>"
-  var msgHtml=''
+  var msgHtml = ''
   var LODOP
   var LODOP
   try {
   try {
     var ua = navigator.userAgent
     var ua = navigator.userAgent
@@ -122,8 +122,9 @@ function getLodop (oOBJECT, oEMBED) {
       if (!needCLodop()) { msgHtml = (is64IE ? strHtm64_Update : strHtmUpdate) }
       if (!needCLodop()) { msgHtml = (is64IE ? strHtm64_Update : strHtmUpdate) }
     }
     }
     //= ==如下空白位置适合调用统一功能(如注册语句、语言选择等):==
     //= ==如下空白位置适合调用统一功能(如注册语句、语言选择等):==
-    LODOP.SET_LICENSES("","E89B8C436467D381F32C0B7F5674838FA59","","")
+    LODOP.SET_LICENSES('', 'E89B8C436467D381F32C0B7F5674838FA59', '', '')
     //= ==============================================.com//.com台级//.net
     //= ==============================================.com//.com台级//.net
+    console.log('SET_LICENSES执行了')
     console.log(msgHtml)
     console.log(msgHtml)
     return LODOP
     return LODOP
   } catch (err) {
   } catch (err) {