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 | 43 ++++++++++++++++++------------------------- 1 files changed, 18 insertions(+), 25 deletions(-) diff --git a/src/components/login.vue b/src/components/login.vue index 9903b92..5da85c4 100644 --- a/src/components/login.vue +++ b/src/components/login.vue @@ -9,36 +9,29 @@ return {}; }, mounted() { + // 娴嬭瘯鐗堟湰鍏嶇櫥褰� + // this.$router.push({ + // path: "/home", + // query: { showlayer: this.$route.query.showlayer } + // }); + + // 姝e紡鐗堢涓夋柟鐧诲綍 this.getQueryString("focus-open-code"); - // if ( - // window.location.href.match(/=(\S*)#/) && - // window.location.href.match(/=(\S*)#/)[1] != "" - // ) { - // this.passFree(); - // } - // console.log(1); - - // // 浜姙鍏嶅瘑鐧诲綍锛坲rl甯﹀弬"focus-open-code"锛� - // if (this.$route.query["focus-open-code"]) { - // this.passJBFree(); - // } }, methods: { getQueryString(name) { - this.$router.push("/index"); - // var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); - // var r = window.location.search.substr(1).match(reg); - // if (r != null) { - // this.$router.push("/index"); - // } - // return null; - }, - // 浜姙鍏嶅瘑鐧诲綍 - // passJBFree() { - // // this.$router.push("/index"); - // }, - }, + var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); + var r = window.location.search.substr(1).match(reg); + if (r != null) { + this.$router.push({ + path: "/index", + query: { showlayer: this.$route.query.showlayer } + }); + } + return null; + } + } }; </script> -- Gitblit v1.9.3