|
@@ -1,38 +1,48 @@
|
|
import Vue from 'vue'
|
|
import Vue from 'vue'
|
|
-import { PiniaVuePlugin, createPinia } from 'pinia'
|
|
|
|
|
|
|
|
-import Antd from 'ant-design-vue'
|
|
|
|
-import ElementUI from 'element-ui';
|
|
|
|
import App from './App.vue'
|
|
import App from './App.vue'
|
|
import router from './router'
|
|
import router from './router'
|
|
|
|
|
|
-import * as echarts from 'echarts';
|
|
|
|
-import 'animate.css/animate.min.css'
|
|
|
|
|
|
+import Antd from 'ant-design-vue'
|
|
|
|
+
|
|
|
|
+import ElementUI from 'element-ui';
|
|
import 'element-ui/lib/theme-chalk/index.css';
|
|
import 'element-ui/lib/theme-chalk/index.css';
|
|
import locale from 'element-ui/lib/locale/lang/zh-CN'
|
|
import locale from 'element-ui/lib/locale/lang/zh-CN'
|
|
|
|
+
|
|
|
|
+import * as echarts from 'echarts';
|
|
|
|
+import 'animate.css/animate.min.css'
|
|
|
|
+
|
|
|
|
+import { PiniaVuePlugin, createPinia } from 'pinia'
|
|
|
|
+
|
|
|
|
+/* 自定义滚动条 */
|
|
|
|
+// 组件引入
|
|
import { HappyScroll } from 'vue-happy-scroll'
|
|
import { HappyScroll } from 'vue-happy-scroll'
|
|
-import dayjs from "dayjs"
|
|
|
|
-//自定义组件名
|
|
|
|
|
|
+// 组件命名
|
|
Vue.component('happy-scroll', HappyScroll)
|
|
Vue.component('happy-scroll', HappyScroll)
|
|
-// 引入css
|
|
|
|
|
|
+// 组件样式引入
|
|
import 'vue-happy-scroll/docs/happy-scroll.css'
|
|
import 'vue-happy-scroll/docs/happy-scroll.css'
|
|
|
|
|
|
// 全局方法
|
|
// 全局方法
|
|
import util from '@/utils/index'
|
|
import util from '@/utils/index'
|
|
// 常量
|
|
// 常量
|
|
import constant from '@/utils/constant.js'
|
|
import constant from '@/utils/constant.js'
|
|
|
|
+// 时间插件
|
|
|
|
+import moment from '@/utils/moment_set.js'
|
|
|
|
|
|
Vue.prototype.$util = util
|
|
Vue.prototype.$util = util
|
|
Vue.prototype.$constant = constant
|
|
Vue.prototype.$constant = constant
|
|
Vue.prototype.$echarts = echarts
|
|
Vue.prototype.$echarts = echarts
|
|
-Vue.prototype.$dayjs = dayjs
|
|
|
|
|
|
+Vue.prototype.$moment = moment
|
|
|
|
|
|
Vue.use(Antd)
|
|
Vue.use(Antd)
|
|
-Vue.use(ElementUI, {locale});
|
|
|
|
|
|
+Vue.use(ElementUI, { locale });
|
|
Vue.use(PiniaVuePlugin)
|
|
Vue.use(PiniaVuePlugin)
|
|
|
|
|
|
new Vue({
|
|
new Vue({
|
|
router,
|
|
router,
|
|
|
|
+ data: {
|
|
|
|
+ moment,
|
|
|
|
+ },
|
|
pinia: createPinia(),
|
|
pinia: createPinia(),
|
|
render: h => h(App),
|
|
render: h => h(App),
|
|
}).$mount('#app')
|
|
}).$mount('#app')
|