Commit 90f82913 by yangzhi

fix:shopify跳转

parent a4348bf7
......@@ -77,7 +77,7 @@ export default {
},
mounted() {
if(this.userInfo&&this.$route.query.shopKey){
this.setShopKey(this.$route.query)
localStorage.setItem('shopifyObj', JSON.stringify(this.$route.query))
this.$router.push('/contact')
}
},
......
......@@ -86,14 +86,15 @@ export default {
components: {},
data() {
return {
userInfo: JSON.parse(localStorage.getItem('userInfo'))
userInfo: JSON.parse(localStorage.getItem('userInfo')),
shopifyObj:JSON.parse(localStorage.getItem('shopifyObj'))
}
},
computed: {
...mapState(['shopifyObj']),
},
mounted() {
if (this.userInfo) {
if (this.userInfo&&this.shopifyObj) {
this.getShopifyInfo()
}
},
......
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