From b5f603e902373dc01a336923a30cce3802d6ce27 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期一, 29 七月 2024 14:07:43 +0800
Subject: [PATCH] 测试完成
---
src/App.vue | 13 +++----------
1 files changed, 3 insertions(+), 10 deletions(-)
diff --git a/src/App.vue b/src/App.vue
index 41fbbf5..1d2d256 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -17,20 +17,13 @@
},
data() {
return {
- routers: this.$route.path.split("/").pop(),
+ routers: window.location.href,
routertf: true,
};
},
created() {
- this.routertf = this.$route.query.param5;
- console.log(this.routertf, "12");
- // 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