Commit 5de245f4 authored by 罗超's avatar 罗超

no message

parent 59fc9e24
......@@ -9,13 +9,16 @@ export default {
return {};
},
mounted() {
if (!this.getLocalStorage()&&!this.$route.query.token) {
let getData = JSON.stringify(this.$route.query)
getData = JSON.parse(data)
getData = JSON.parse(data.erpOrderObj)
console.log(data, '')
if (!this.getLocalStorage()&&getData.path) {
this.$router.push({
path: "/login",
});
} else if(this.$route.query.token) { // erp自动登陆传过来的参数
let data = this.$route.query
let parameter = data.data[0]
} else if(getData.path) { // erp自动登陆传过来的参数
let parameter = getData
this.$router.push({
path: `/automaticLogin?toke=${data.token}&data=${JSON.stringify(parameter)}`,
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment