From 8512f4ae542325e15058c9fabb019db6ef1000ef Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期五, 17 九月 2021 15:13:33 +0800 Subject: [PATCH] 添加i18n国际化 --- src/pages/shuohuangMonitorAnalyze/index/main.ts | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/src/pages/shuohuangMonitorAnalyze/index/main.ts b/src/pages/shuohuangMonitorAnalyze/index/main.ts index ddd090c..fdf3ab8 100644 --- a/src/pages/shuohuangMonitorAnalyze/index/main.ts +++ b/src/pages/shuohuangMonitorAnalyze/index/main.ts @@ -3,12 +3,19 @@ import Mixin from "./mixins"; import ElementUI from 'element-ui'; import moment from 'moment'; - +import echarts from 'echarts'; import 'element-ui/lib/theme-chalk/index.css'; import "@/assets/css/element-variables.scss"; +import VueAwesomeSwiper from "vue-awesome-swiper"; +import "swiper/dist/css/swiper.css"; +import {numberFormat} from '@/scripts/util'; + Vue.use(ElementUI); +Vue.use(VueAwesomeSwiper as any); Vue.mixin(Mixin); Vue.prototype.$moment = moment; +Vue.prototype.$echarts = echarts; +Vue.prototype.$numberFormat = numberFormat; new Vue({ el: '#app', render: h => h(App) -- Gitblit v1.8.0