From 97086a0525e01ec7a5727bf79cf64281f0918666 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Tue, 16 Dec 2025 14:03:09 +0800 Subject: [PATCH] =?UTF-8?q?2025-12-16=20CLODOP=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/LodopFuncs.js | 31 ++++++++++++++++--------------- static/config/index.js | 2 +- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/src/utils/LodopFuncs.js b/src/utils/LodopFuncs.js index 124dd50..15d3098 100644 --- a/src/utils/LodopFuncs.js +++ b/src/utils/LodopFuncs.js @@ -96,6 +96,7 @@ function checkOrTryHttp() { // 下载CLodop安装程序 function loadLodop() { + console.log(window.SITE_CONFIG['baseUrl']) window.open(window.SITE_CONFIG['baseUrl'] + '/printer/download') } @@ -116,11 +117,11 @@ function getLodop(oOBJECT, oEMBED) { if (!LODOP) { logger.info("LodopFuncs.js getLodop no CLodop"); MessageBox({ - title: 'Information', + title: '打印组件', type: 'warning', showCancelButton: true, - confirmButtonText: 'Download', - cancelButtonText: 'Cancel', + confirmButtonText: '下载', + cancelButtonText: '取消', zIndex: 3000, message: "您没有安装打印组件或者您安装的版本不是最新版本,请下载并安装或升级,同时请检查相关服务是否已启动,最后请关闭并重新打开浏览器。", callback: res => { @@ -141,11 +142,11 @@ function getLodop(oOBJECT, oEMBED) { if (needUpgrade) { MessageBox({ - title: 'Information', + title: '打印组件', type: 'warning', showCancelButton: true, - confirmButtonText: 'Download', - cancelButtonText: 'Cancel', + confirmButtonText: '下载', + cancelButtonText: '取消', zIndex: 3000, message: "您没有安装打印组件或者您安装的版本不是最新版本,请下载并安装或升级,同时请检查相关服务是否已启动,最后请关闭并重新打开浏览器。", callback: res => { @@ -188,11 +189,11 @@ function getLodop(oOBJECT, oEMBED) { //==Lodop插件未安装时提示下载:== if ((!LODOP) || (!LODOP.VERSION)) { MessageBox({ - title: 'Information', + title: '打印组件', type: 'warning', showCancelButton: true, - confirmButtonText: 'Download', - cancelButtonText: 'Cancel', + confirmButtonText: '下载', + cancelButtonText: '取消', zIndex: 3000, message: "您没有安装打印组件或者您安装的版本不是最新版本,请下载并安装或升级,同时请检查相关服务是否已启动,最后请关闭并重新打开浏览器。", callback: res => { @@ -206,11 +207,11 @@ function getLodop(oOBJECT, oEMBED) { if (LODOP.VERSION < "6.2.2.6") { MessageBox({ - title: 'Information', + title: '打印组件', type: 'warning', showCancelButton: true, - confirmButtonText: 'Download', - cancelButtonText: 'Cancel', + confirmButtonText: '下载', + cancelButtonText: '取消', zIndex: 3000, message: "您没有安装打印组件或者您安装的版本不是最新版本,请下载并安装或升级,同时请检查相关服务是否已启动,最后请关闭并重新打开浏览器。", callback: res => { @@ -231,11 +232,11 @@ function getLodop(oOBJECT, oEMBED) { return LODOP; } catch (err) { MessageBox({ - title: 'Information', + title: '打印组件', type: 'warning', showCancelButton: true, - confirmButtonText: 'Download', - cancelButtonText: 'Cancel', + confirmButtonText: '下载', + cancelButtonText: '取消', zIndex: 3000, message: "您没有安装打印组件或者您安装的版本不是最新版本,请下载并安装或升级,同时请检查相关服务是否已启动,最后请关闭并重新打开浏览器。", callback: res => { diff --git a/static/config/index.js b/static/config/index.js index 48229cf..de3e455 100644 --- a/static/config/index.js +++ b/static/config/index.js @@ -5,7 +5,7 @@ window.SITE_CONFIG = {}; // api接口请求地址 - window.SITE_CONFIG['baseUrl'] = 'http://127.0.0.1:9090/xujie-fast'; + window.SITE_CONFIG['baseUrl'] = 'http://127.0.0.1:9090'; // cdn地址 = 域名 + 版本号 window.SITE_CONFIG['domain'] = './'; // 域名