From 3fe0a1b9e132af4cf1f9b7b79e84b63df3843ead Mon Sep 17 00:00:00 2001 From: Apcallover <1503963513@qq.com> Date: Thu, 18 Dec 2025 11:16:20 +0800 Subject: [PATCH] =?UTF-8?q?flat:=20=E5=85=BC=E5=AE=B9=E5=86=99=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/chat/components/uploadQrcode.vue | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/pages/chat/components/uploadQrcode.vue b/pages/chat/components/uploadQrcode.vue index 95df177..6c0a228 100644 --- a/pages/chat/components/uploadQrcode.vue +++ b/pages/chat/components/uploadQrcode.vue @@ -110,7 +110,19 @@ function makeQrcode() { const protocol = window.location.protocol; const host = window.location.host; const isLocal = host.includes('localhost') || host.includes('127.0.0.1'); - const pathPrefix = isLocal ? '' : '/rgpp-api/all-in-one'; + // const pathPrefix = isLocal ? '' : '/rgpp-api/all-in-one'; + let pathPrefix = ''; + if (host.includes('localhost') || host.includes('127.0.0.1')) { + pathPrefix = ''; + } else if (host.includes('qd.zhaopinzao8dian.com')) { + // 外网测试环境 + pathPrefix = '/app'; + } else if (host.includes('fw.rc.qingdao.gov.cn')) { + // 青岛政务网环境 + pathPrefix = '/rgpp-api/all-in-one'; + } else { + pathPrefix = ''; + } const htmlPath = `${protocol}//${host}${pathPrefix}/static/upload.html?sessionId=${uuid.value}&uploadApi=${config.baseUrl}/app/kiosk/upload`; // const htmlPath = `${window.location.host}/static/upload.html?sessionId=${uuid.value}&uploadApi=${