| | |
| | | import router from "./router"; |
| | | import directive from "./directive"; // directive |
| | | import plugins from "./plugins"; // plugins |
| | | import Print from 'vue-print-nb' |
| | | import { download } from "@/utils/request"; |
| | | //引入quill-editor编辑器 |
| | | import VueQuillEditor from "vue-quill-editor"; |
| | |
| | | import "quill/dist/quill.snow.css"; |
| | | import "quill/dist/quill.bubble.css"; |
| | | Vue.use(VueQuillEditor); |
| | | Vue.use(Print) |
| | | |
| | | // 引入 |
| | | import { codemirror } from "vue-codemirror"; |
| | | import "@/utils/cm-setting.js"; |
| | | Vue.component("codemirror", codemirror); |
| | | import preventReClick from '@/utils/directives/preventReClick'; |
| | | Vue.use(preventReClick); |
| | | |
| | | import { Quill } from "vue-quill-editor"; |
| | | window.Quill = Quill; |
| | |
| | | Vue.filter(key, filters[key]); |
| | | } |
| | | import moment from "moment" |
| | | // 1. 在main.js中添加错误监听 |
| | | window.addEventListener('unhandledrejection', (event) => { |
| | | if (event.reason && event.reason.message && |
| | | event.reason.message.includes('Loading chunk')) { |
| | | // 重新加载页面 |
| | | window.location.reload(); |
| | | } |
| | | }); |
| | | |
| | | Vue.prototype.$moment = moment; |
| | | |