From 13497eb22d8b8102f27291ef5a20539b48cd1a6c Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Thu, 23 Oct 2025 21:00:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=A4=A7=E5=B1=8F=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/panel/index.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/panel/index.vue b/src/views/panel/index.vue index 1a5c4b1..710c205 100644 --- a/src/views/panel/index.vue +++ b/src/views/panel/index.vue @@ -14,7 +14,12 @@ const loading = ref(false) onMounted(async () => { try { - openPlanUrl("http://localhost:5173/#/canteen") + // 是否生成环境 + if (import.meta.env.VITE_ENV === "prod") { + openPlanUrl("https://stgl.pj.gov.cn/cockpit/#/canteen") + } else { + openPlanUrl("http://localhost:5173/#/canteen") + } loading.value = true router.back() } catch (error: any) {