更新:国内后台功能迁移海外后台
This commit is contained in:
@@ -12,6 +12,7 @@ import '@/element-ui-theme'
|
||||
import '@/assets/scss/index.scss'
|
||||
import '@/assets/css/time-line.less' // 引入时间线样式
|
||||
import Bus from '@/assets/js/eventBus.js'
|
||||
import commonJS from '@/views/common/js/commonJS'
|
||||
import httpRequest from '@/utils/httpRequest' // api: https://github.com/axios/axios
|
||||
import { isAuth } from '@/utils'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@@ -38,10 +39,11 @@ if (process.env.NODE_ENV !== 'production') {
|
||||
}
|
||||
|
||||
// 挂载全局
|
||||
|
||||
Vue.prototype.$http = httpRequest // ajax请求方法
|
||||
Vue.prototype.isAuth = isAuth // 权限方法
|
||||
Vue.prototype.$bus = Bus
|
||||
|
||||
Vue.prototype.$commonJS = commonJS //
|
||||
// 保存整站vuex本地储存初始状态
|
||||
window.SITE_CONFIG['storeState'] = cloneDeep(store.state)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user