From 80476fae71f08bf4408c7509eff254031a4eeac6 Mon Sep 17 00:00:00 2001 From: inleft <inleft@qq.com> Date: Wed, 24 Aug 2022 18:47:09 +0800 Subject: [PATCH] 路由修正,常量提取 --- src/main.js | 44 ++++++++++++++++++++++++++++---------------- 1 files changed, 28 insertions(+), 16 deletions(-) diff --git a/src/main.js b/src/main.js index e319c2b..bdf259d 100644 --- a/src/main.js +++ b/src/main.js @@ -1,26 +1,38 @@ import Vue from 'vue'; import App from './App'; -import uploader from 'vue-simple-uploader' +import axios from 'axios' +import router from './router/router.js' +import moveDragMoDal from '@/config/moveDragModal.js' -import 'element-ui/lib/theme-chalk/index.css'; +import './mock/' import Antd from 'ant-design-vue/es'; -import 'ant-design-vue/dist/antd.less'; // 引入官方提供的 less 样式入口文件 -import $ from 'jquery' +import 'ant-design-vue/dist/antd.less'; +Vue.use(Antd); -import axios from 'axios' -import Element from 'element-ui' -import store from "@/components/test7/store.js" +import 'viewerjs/dist/viewer.css' +import VueViewer from 'v-viewer' + Vue.use(VueViewer) + + +import 'animate.css' +// import wow from 'wowjs' +// Vue.prototype.$wow=wow + +import infiniteScroll from 'vue-infinite-scroll' +Vue.use(infiniteScroll) + +import APlayer from '@moefe/vue-aplayer'; + +Vue.use(APlayer, { + productionTip: false +}) Vue.prototype.$axios = axios -Vue.use(Antd); -Vue.use(Element) -Vue.use(uploader) -// Vue.component(Button.name, Button); - -// Vue.config.productionTip = false; new Vue({ - render: h => h(App), - store, -}).$mount('#app'); + el: '#app', + router, //挂载路由 + render: h => h(App) +}) +// .$mount('#app'); -- Gitblit v1.9.1