启动时,增加对token的检查

This commit is contained in:
daihh
2023-03-16 16:10:18 +08:00
parent 17dd44937e
commit 13e83580d3
5 changed files with 53 additions and 43 deletions

View File

@@ -6,6 +6,7 @@
<script>
import apiLogin from '@/api/login.js'
import {toLogin} from '@/utils/tologin.js'
import { getToken,setToken } from '@/utils/token'
export default{
data(){
@@ -28,7 +29,7 @@
});
this.toUrl=this.toUrl+params;
}
console.log(this.toUrl,'options.returnUrl');
//console.log(this.toUrl,'options.returnUrl');
},
mounted() {
let token=getToken();