From 2c4c416bf7950c72ffa2543a218e4fd993ee2af2 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期四, 12 九月 2024 12:04:32 +0800 Subject: [PATCH] 测试完成 --- src/App.vue | 12 +++--------- 1 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/App.vue b/src/App.vue index 897936f..1d2d256 100644 --- a/src/App.vue +++ b/src/App.vue @@ -17,19 +17,13 @@ }, data() { return { - routers: this.$route.path.split("/").pop(), + routers: window.location.href, routertf: true, }; }, created() { - console.log(this.routers); - if ( - this.routers == "outsideChainxj" || - this.routers == "outsideChain" || - this.routers == "outsideChainwt" - ) { - this.routertf = false; - } + var startIndex = this.routers.indexOf("param5=") + "param5=".length; // 鎵惧埌绗竴涓瓧绗︾殑浣嶇疆 + this.routertf = JSON.parse(this.routers.substring(startIndex)); // 鎴彇浠� 'param5=' 涔嬪悗鐨勫唴瀹� }, metaInfo() { return { -- Gitblit v1.9.3