Commit 6f38e7dd by 杨明

fixed

1 parent ac84bf8f
...@@ -19,7 +19,7 @@ let router = null ...@@ -19,7 +19,7 @@ let router = null
let instance = null let instance = null
Vue.use(ElementUI) Vue.use(ElementUI)
Vue.use(GLTable) Vue.use(GLTable)
export async function bootstrap({ history, common, messenger, globalState,routerBase }) { export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, sign, secret, sign_common, request_common } = await fetchConfig(common) const { response, request, sign, secret, sign_common, request_common } = await fetchConfig(common)
Vue.prototype.$history = history Vue.prototype.$history = history
Vue.prototype.$messenger = messenger Vue.prototype.$messenger = messenger
...@@ -33,6 +33,7 @@ export async function bootstrap({ history, common, messenger, globalState,router ...@@ -33,6 +33,7 @@ export async function bootstrap({ history, common, messenger, globalState,router
routes = getRoutes(routesData) routes = getRoutes(routesData)
subscribe({ messenger }) subscribe({ messenger })
Vue.use(GLButton, { routes, routerBase }) Vue.use(GLButton, { routes, routerBase })
}
export async function mount(props) { export async function mount(props) {
const insts = render(props.routerBase, routes) const insts = render(props.routerBase, routes)
router = insts.router router = insts.router
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!