Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
offical_web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangjie
offical_web
Commits
90f82913
Commit
90f82913
authored
Aug 25, 2023
by
yangzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:shopify跳转
parent
a4348bf7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
src/components/head.vue
+1
-1
src/views/contact.vue
+3
-2
No files found.
src/components/head.vue
View file @
90f82913
...
@@ -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'
)
}
}
},
},
...
...
src/views/contact.vue
View file @
90f82913
...
@@ -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
()
}
}
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment