8 Star 50 Fork 15

落魄实习生/unicloud-router-iview-admin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.js 1.07 KB
一键复制 编辑 原始数据 按行查看 历史
落魄实习生 提交于 2020-09-04 17:54 . 新增代码编辑器
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');
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/mouxangitee/unicloud-router-iview-admin.git
git@gitee.com:mouxangitee/unicloud-router-iview-admin.git
mouxangitee
unicloud-router-iview-admin
unicloud-router-iview-admin
master

搜索帮助