This commit is contained in:
home孙 2025-08-27 12:28:40 +08:00
parent 262260c977
commit 3c841537db

View File

@ -30,6 +30,10 @@
}, },
mounted(){ mounted(){
var router = this.$route.query;
if(router.token){
localStorage.setItem("token", router.token);
}
let inputList = document.querySelectorAll('input'); let inputList = document.querySelectorAll('input');
for (let index = 0; index < inputList.length; index++) { for (let index = 0; index < inputList.length; index++) {
inputList[index].onfocus = this.selectValue();//input inputList[index].onfocus = this.selectValue();//input
@ -37,7 +41,7 @@
}, },
methods:{ methods:{
// //
selectValue(e) { selectValue(e) {
e.currentTarget.select(); e.currentTarget.select();
} }