mirror of
https://gitee.com/chu1204505056/vue-admin-beautiful.git
synced 2025-04-05 05:42:45 +08:00
25 lines
576 B
Vue
25 lines
576 B
Vue
import Vue from 'vue'
|
||
import App from './App'
|
||
import store from './store'
|
||
import router from './router'
|
||
import './plugins'
|
||
import '@/layouts/export'
|
||
/**
|
||
* @author https://github.com/zxwk1998/vue-admin-better (不想保留author可删除)
|
||
* @description 生产环境默认都使用mock,如果正式用于生产环境时,记得去掉
|
||
*/
|
||
|
||
if (process.env.NODE_ENV === 'production') {
|
||
const { mockXHR } = require('@/utils/static')
|
||
mockXHR()
|
||
}
|
||
|
||
Vue.config.productionTip = false
|
||
|
||
new Vue({
|
||
el: '#vue-admin-beautiful',
|
||
router,
|
||
store,
|
||
render: (h) => h(App),
|
||
})
|