feat:大屏跳转
This commit is contained in:
1 parent
5547ec3c9d
commit
13497eb22d
1 file changed
+6
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user