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

Commit 1404912

Browse files
committed
OLD_SERVER_PREFIX
1 parent d67e870 commit 1404912

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/router/routes/base.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
import utils from 'utils'
1+
import {getters} from 'store'
2+
3+
// import utils from 'utils'
24

35
export default [{
46
path: '/',
@@ -27,7 +29,7 @@ export default [{
2729
name: '404',
2830
component: () => import('components/HiWidgets/NotFound'),
2931
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)
3234
}
3335
}]

src/store/modules/permission.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ const mutations = {
159159
state.style = style
160160
state.theme = theme
161161
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/`)
164164
},
165165
[TOGGLE_SUBSCRIBE_TYPE](state, subscribeType) {
166166
state.subscribeType = subscribeType

0 commit comments

Comments
 (0)