From 2a3bfbc64a74f3afaeced0756fcb2e4f60b94a24 Mon Sep 17 00:00:00 2001
From: guanqb <18720758508@163.com>
Date: Wed, 12 Oct 2022 17:43:25 +0800
Subject: [PATCH] 首页布局调整
---
src/App.vue | 24 ++++++------------------
1 files changed, 6 insertions(+), 18 deletions(-)
diff --git a/src/App.vue b/src/App.vue
index a324ecc..d0eff1d 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -86,7 +86,12 @@
} else {
// pc端
// this.$router.replace('/large')
- this.$router.replace('/pcLayout')
+
+ if (this.$route.path == '/pcLayout/default') {
+ this.$router.replace('/pcLayout')
+ } else {
+ this.$router.replace('/login')
+ }
}
},
methods: {
@@ -106,23 +111,6 @@
if (r != null) return decodeURIComponent(r)
return null
},
- getQueryVariable (variable) {
- var query = window.location.search.substring(1)
- var vars = query.split('&')
- for (var i = 0; i < vars.length; i++) {
- var pair = vars[i].split('=')
- if (pair[0] == variable) {
- return pair[1]
- }
- }
- return false
- },
- _isMobile () {
- const flag = navigator.userAgent.match(
- /(phone|pad|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows phone)/i
- )
- return flag
- }
}
}
</script>
--
Gitblit v1.9.3