This repository was archived by the owner on Mar 23, 2018. It is now read-only.
Commit 1404912 1 parent d67e870 commit 1404912 Copy full SHA for 1404912
File tree 2 files changed +7
-5
lines changed
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
- import utils from 'utils'
1
+ import { getters } from 'store'
2
+
3
+ // import utils from 'utils'
2
4
3
5
export default [ {
4
6
path : '/' ,
@@ -27,7 +29,7 @@ export default [{
27
29
name : '404' ,
28
30
component : ( ) => import ( 'components/HiWidgets/NotFound' ) ,
29
31
beforeEnter ( ) {
30
- // location.href = getters.urlPrefix + getters.currRole + '/index'
31
- utils . router . history . updateRoute ( utils . NOT_FOUND_ROUTE )
32
+ location . href = getters . urlPrefix + getters . currRole + '/index'
33
+ // utils.router.history.updateRoute(utils.NOT_FOUND_ROUTE)
32
34
}
33
35
} ]
Original file line number Diff line number Diff line change @@ -159,8 +159,8 @@ const mutations = {
159
159
state . style = style
160
160
state . theme = theme
161
161
state . oauthUrlTemplate = oauthUrlTemplate
162
- state . oldServer = OLD_SERVER_PREFIX +
163
- ( isStatic ? 'dev/modules/index/html/' : `${ isWechat ? 'oauth/' : '' } center/${ state . tcode } /index/` )
162
+ state . oldServer = OLD_SERVER_PREFIX + ( isStatic ? ` ${ __DEV__ ? 'dev' : 'product/default' } /modules/index/html/`
163
+ : `${ isWechat ? 'oauth/' : '' } center/${ state . tcode } /index/` )
164
164
} ,
165
165
[ TOGGLE_SUBSCRIBE_TYPE ] ( state , subscribeType ) {
166
166
state . subscribeType = subscribeType
You can’t perform that action at this time.
0 commit comments