Skip to content
This repository was archived by the owner on Mar 23, 2018. It is now read-only.

Commit d67e870

Browse files
committed
fix homepage
1 parent 733bc25 commit d67e870

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

build/bash/sync.sh

-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ then
2323
git commit -m "$MESSAGE"
2424
git push --force --quiet [email protected]:Raiyee/EasyHi.git gh-pages:gh-pages
2525
git push --force --quiet [email protected]:Raiyee/EasyHi.git gh-pages:coding-pages
26-
27-
npm i -D coveralls codecov
28-
npm run coveralls && npm run codecov
2926
else
3027
echo "there is nothing changed and to commit"
3128
fi

src/router/routes/base.js

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
import {getters} from 'store'
2-
3-
// import utils from 'utils'
1+
import utils from 'utils'
42

53
export default [{
64
path: '/',
75
name: 'home',
86
component: () => import('views/Home'),
9-
beforeEnter(to, from, next) {
10-
__DEV__ ? next() : (location.href = getters.memberUrlPrefix)
11-
},
127
meta: {
138
menuShow: false
149
}
@@ -32,7 +27,7 @@ export default [{
3227
name: '404',
3328
component: () => import('components/HiWidgets/NotFound'),
3429
beforeEnter() {
35-
location.href = getters.urlPrefix + getters.currRole + '/index'
36-
// utils.router.history.updateRoute(utils.NOT_FOUND_ROUTE)
30+
// location.href = getters.urlPrefix + getters.currRole + '/index'
31+
utils.router.history.updateRoute(utils.NOT_FOUND_ROUTE)
3732
}
3833
}]

0 commit comments

Comments
 (0)