Commit a6fc511f by 王志慧

fixed

1 parent 08648443
......@@ -10,8 +10,6 @@
import Vue from 'vue'
import apis from './api'
import { optionalChaining } from './utils/chaining'
import { setMinHeight } from '@/common/constant'
import utils from './utils/index'
import './public-path'
import '@/assets/css/public.scss'
import '@/components'
......@@ -21,10 +19,8 @@ import { start } from '@/setup'
Vue.config.productionTip = false
Vue.prototype.$apis = apis
Vue.prototype.$$ = optionalChaining
Vue.prototype.$utils = utils
Vue.prototype.size = 'small'
Vue.prototype.$EventBus = new Vue()
Vue.prototype.setMinHeight = setMinHeight
start()
export { bootstrap, mount, unmount } from '@/setup'
export const http = params => Vue.prototype.$http(params)
......
import Vue from 'vue'
import { message, messageBox } from '@/plugins/element.js'
import { fetchConfig } from '@/config'
import { GLButton, GLTable, GLTableButton, GLDialog } from 'glsx-components' //权限按钮 (根据权限动态创建)
import { GLButton, GLTable } from 'glsx-components' //权限按钮 (根据权限动态创建)
import { getRoutes } from '@/router'
import ElementUI from 'element-ui'
import render from './render'
import 'glsx-components/dist/glsx-components.css'
let routes = []
let router = null
let instance = null
Vue.use(ElementUI)
Vue.use(GLTable)
Vue.use(GLTableButton)
Vue.use(GLDialog)
import 'glsx-components/dist/glsx-components.css'
export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, sign, secret, sign_common, request_common } = await fetchConfig(false, common)
const { response, request, sign, secret, sign_common, request_common } = await fetchConfig()
Vue.prototype.$history = history
Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!