Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-app-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
陈峰
6 years ago
Commit
08ecbabec522b959497d5238d936d899a54a6d8c
1 parent
e95c39ec
commit
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
3 deletions
apps/store/ufo/order/mutations.js
apps/store/yoho/index.js
apps/utils/error-handler.js
doraemon/middleware/ssr.js
apps/store/ufo/order/mutations.js
View file @
08ecbab
...
...
@@ -21,4 +21,13 @@ export default {
[
Types
.
POST_NOSALE_SUCCESS
](
state
)
{
state
.
fetchingNoSale
=
false
;
},
[
Types
.
POST_CHANGEPRICE_REQUEST
](
state
)
{
state
.
fetchingNoSale
=
true
;
},
[
Types
.
POST_CHANGEPRICE_FAILD
](
state
)
{
state
.
fetchingNoSale
=
false
;
},
[
Types
.
POST_NOSALE_SUCCESS
](
state
)
{
state
.
fetchingNoSale
=
false
;
},
};
...
...
apps/store/yoho/index.js
View file @
08ecbab
...
...
@@ -18,7 +18,7 @@ export default function() {
pageVisible
:
false
,
touchStatus
:
''
,
scrollTime
:
0
,
direction
:
'forword'
direction
:
'forword'
,
},
mutations
:
{
[
Types
.
SET_ENV
]()
{
...
...
apps/utils/error-handler.js
View file @
08ecbab
export
default
err
=>
{
}
\ No newline at end of file
...
...
doraemon/middleware/ssr.js
View file @
08ecbab
...
...
@@ -56,12 +56,11 @@ const handlerError = (err = {}, req, res, next) => {
}
else
if
(
err
.
code
===
500
)
{
return
res
.
redirect
(
'/error/500'
);
}
console
.
log
(
err
)
return
next
(
err
);
};
const
getCacheKey
=
(
urlPath
,
cackeKey
=
''
)
=>
{
const
urlObj
=
url
.
parse
(
urlPath
);
const
urlObj
=
url
.
parse
(
urlPath
);
return
md5
(
cackeKey
.
replace
(
'$url'
,
urlObj
.
pathname
)
...
...
Please
register
or
login
to post a comment