代码拉取完成,页面将自动刷新
import Vue from 'vue'
import App from '@/App'
import router from '@/router'
import { RouterMount } from 'uni-simple-router'
import ViewUI from 'view-design';
import 'view-design/dist/styles/iview.css';
import store from '@/store';
import config from '@/config'
import VueCodemirror from 'vue-codemirror'
// require styles
import 'codemirror/lib/codemirror.css'
Vue.use(ViewUI);
// require more codemirror resource...
// you can set default global options and events when use
Vue.use(VueCodemirror, /* {
options: { theme: 'base16-dark', ... },
events: ['scroll', ...]
} */)
ViewUI.Message.config({
top: 50,
duration: 3
});
ViewUI.Notice.config({
top: 100,
duration: 3
});
// 图片预览插件
import Viewer from 'v-viewer'
import 'viewerjs/dist/viewer.css'
Vue.use(Viewer)
// 富文本
import Editor from './components/editor/editor'
import 'github-markdown-css/github-markdown.css';
Vue.component('Editor', Editor)
Vue.config.productionTip = false
Vue.prototype.$config = config
App.mpType = 'app'
const app = new Vue({
...App,
router,
store
})
RouterMount(app,'#app');
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。