Initial commit: freedom-web frontend project
This commit is contained in:
+64
@@ -0,0 +1,64 @@
|
||||
// The Vue build version to load with the `import` command
|
||||
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
|
||||
import Vue from 'vue'
|
||||
import App from './App'
|
||||
import router from './router'
|
||||
import store from './store'
|
||||
import ViewUI from 'view-design';
|
||||
import config from '@/config'
|
||||
import importDirective from '@/directive'
|
||||
import installPlugin from '@/plugin'
|
||||
// math.js 解决计算精度问题
|
||||
import * as math from 'mathjs'
|
||||
// echarts 绘制图表
|
||||
import echarts from 'echarts'
|
||||
// import style
|
||||
import 'view-design/dist/styles/iview.css'
|
||||
import './index.less'
|
||||
import '@/assets/icons/iconfont.css'
|
||||
import '@/assets/my-icons/iconfont.css'
|
||||
import tdTheme from "./components/charts/theme.json";
|
||||
// 粒子特效
|
||||
import VueParticles from 'vue-particles'
|
||||
|
||||
// 实际打包时应该不引入mock
|
||||
// if (process.env.NODE_ENV !== 'production') require('@/mock')
|
||||
|
||||
Vue.use(ViewUI);
|
||||
|
||||
/**
|
||||
* @description 注册admin内置插件
|
||||
*/
|
||||
installPlugin(Vue)
|
||||
/**
|
||||
* @description 生产环境关掉提示
|
||||
*/
|
||||
Vue.config.productionTip = false
|
||||
/**
|
||||
* @description 全局注册应用配置
|
||||
*/
|
||||
Vue.prototype.$config = config
|
||||
/**
|
||||
* @description 全局注册数学计算函数
|
||||
*/
|
||||
Vue.prototype.$math = math
|
||||
/**
|
||||
* @description 全局注册echarts
|
||||
*/
|
||||
Vue.prototype.$echarts = echarts
|
||||
/**
|
||||
* @description 粒子特效
|
||||
*/
|
||||
Vue.use(VueParticles)
|
||||
|
||||
/**
|
||||
* 注册指令
|
||||
*/
|
||||
importDirective(Vue)
|
||||
|
||||
new Vue({
|
||||
el: '#app',
|
||||
router,
|
||||
store,
|
||||
render: h => h(App)
|
||||
})
|
||||
Reference in New Issue
Block a user