From 3c841537db6000e5fdefa38430d61d6711e50f20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?home=E5=AD=99?= <1162067978@qq.com> Date: Wed, 27 Aug 2025 12:28:40 +0800 Subject: [PATCH] 08/27 --- src/App.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index 1c61672e..dc22450a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -30,6 +30,10 @@ }, mounted(){ + var router = this.$route.query; + if(router.token){ + localStorage.setItem("token", router.token); + } let inputList = document.querySelectorAll('input'); for (let index = 0; index < inputList.length; index++) { inputList[index].onfocus = this.selectValue();//input放入焦点,全选文本 @@ -37,7 +41,7 @@ }, methods:{ - //全选文本 + //全选文本 selectValue(e) { e.currentTarget.select(); }