From c6793e5475b607e83cbb55b7d0ddfb9b81bd7774 Mon Sep 17 00:00:00 2001 From: inleft <inleft@qq.com> Date: Thu, 25 Aug 2022 04:09:06 +0800 Subject: [PATCH] 日志内容详情页多媒体适配 markdown 内图片增加viewer相应 --- src/main.js | 44 ++++++++++++++++++++++++++++---------------- 1 files changed, 28 insertions(+), 16 deletions(-) diff --git a/src/main.js b/src/main.js index e319c2b..452adff 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