From 7829cf6b19f449db68d6b319f734115f0adb1e8f Mon Sep 17 00:00:00 2001
From: Apcallover <1503963513@qq.com>
Date: Wed, 20 Mar 2024 14:28:28 +0800
Subject: [PATCH] =?UTF-8?q?flat:=E6=9A=82=E5=AD=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/index.html | 10 ----------
src/page/login/userlogin.vue | 9 +++++++++
2 files changed, 9 insertions(+), 10 deletions(-)
diff --git a/public/index.html b/public/index.html
index fc9eaf3..5616061 100644
--- a/public/index.html
+++ b/public/index.html
@@ -91,16 +91,6 @@
-
diff --git a/src/page/login/userlogin.vue b/src/page/login/userlogin.vue
index af20a10..5d8ccfe 100644
--- a/src/page/login/userlogin.vue
+++ b/src/page/login/userlogin.vue
@@ -55,6 +55,14 @@ import topLang from "@/page/index/top/top-lang";
// import { info } from "@/api/system/tenant";
import { getCaptcha } from "@/api/user";
+if(location.href.indexOf('?') !== -1) {
+ const obj = {}
+ const query = location.href.split('?')[1].replace(/\?/, '').split('&')
+ query.forEach((item) => { const a = item.split('='); obj[a[0]] = a[1]})
+ window.sessionStorage.setItem('query_session', JSON.stringify(obj))
+} else {
+ window.sessionStorage.removeItem('query_session')
+}
export default {
name: "login",
@@ -101,6 +109,7 @@ export default {
created () {
// this.getTenant();
const {username, password } = JSON.parse(window.sessionStorage.getItem('query_session'))
+ window.sessionStorage.removeItem('query_session')
if(username && password) {
this.proLoading = true
this.loginForm.username = username