Commit 90f82913 by yangzhi

fix:shopify跳转

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