From a916fc2df00bac9f8210b09fd7ee79f8b291e345 Mon Sep 17 00:00:00 2001 From: lixuliang <lixuliang_hd@126.com> Date: 星期三, 07 八月 2024 13:35:08 +0800 Subject: [PATCH] 最新 --- src/components/login.vue | 18 ++++++++++++------ 1 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/components/login.vue b/src/components/login.vue index 89a01fc..5da85c4 100644 --- a/src/components/login.vue +++ b/src/components/login.vue @@ -10,10 +10,13 @@ }, mounted() { // 娴嬭瘯鐗堟湰鍏嶇櫥褰� - this.$router.push("/home"); + // this.$router.push({ + // path: "/home", + // query: { showlayer: this.$route.query.showlayer } + // }); - // // 姝e紡鐗堢涓夋柟鐧诲綍 - // this.getQueryString("focus-open-code"); + // 姝e紡鐗堢涓夋柟鐧诲綍 + this.getQueryString("focus-open-code"); }, methods: { @@ -21,11 +24,14 @@ var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if (r != null) { - this.$router.push("/home"); + this.$router.push({ + path: "/index", + query: { showlayer: this.$route.query.showlayer } + }); } return null; - }, - }, + } + } }; </script> -- Gitblit v1.9.3