20230303
This commit is contained in:
@@ -7,6 +7,8 @@ import '@/element-ui' // api: https://github.com/ElemeFE
|
||||
import '@/icons' // api: http://www.iconfont.cn/
|
||||
import '@/element-ui-theme'
|
||||
import '@/assets/scss/index.scss'
|
||||
import '@/assets/css/time-line.less' // 引入时间线样式
|
||||
import Bus from '@/assets/js/eventBus.js'
|
||||
import httpRequest from '@/utils/httpRequest' // api: https://github.com/axios/axios
|
||||
import { isAuth } from '@/utils'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@@ -22,6 +24,7 @@ if (process.env.NODE_ENV !== 'production') {
|
||||
// 挂载全局
|
||||
Vue.prototype.$http = httpRequest // ajax请求方法
|
||||
Vue.prototype.isAuth = isAuth // 权限方法
|
||||
Vue.prototype.$bus = Bus
|
||||
|
||||
// 保存整站vuex本地储存初始状态
|
||||
window.SITE_CONFIG['storeState'] = cloneDeep(store.state)
|
||||
|
||||
Reference in New Issue
Block a user