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) {