mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-09 19:06:46 +08:00
启动时,增加对token的检查
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user