WXL
7 天以前 88cd1b9c862df00e7782084c641e37e7e930ec31
src/main.js
@@ -30,7 +30,6 @@
window.Quill = Quill;
import imageResize from "quill-image-resize";
import { ImageDrop } from "quill-image-drop-module";
Quill.register("modules/imageDrop", ImageDrop);
Quill.register("modules/imageResize", imageResize);
@@ -45,14 +44,16 @@
import { getConfigKey } from "@/api/system/config";
import {
  parseTime,
  formatTime,
  resetForm,
  addDateRange,
  selectDictLabel,
  selectDictLabels,
  handleTree,
  daysBetween,
} from "@/utils/ruoyi";
import LemonMessageVoice from './websocket/lemon-message-voice';
Vue.component(LemonMessageVoice.name,LemonMessageVoice);
import LemonMessageVoice from "./websocket/lemon-message-voice";
Vue.component(LemonMessageVoice.name, LemonMessageVoice);
// 分页组件
import Pagination from "@/components/Pagination";
// 自定义表格工具组件
@@ -74,7 +75,7 @@
// 组件封装集成
import components from "./components";
// 语音组件
import VueAudio from 'vue-audio-better'
import VueAudio from "vue-audio-better";
// 注册过滤器
// 自定义指令
import * as directives from "./directives";
@@ -82,7 +83,7 @@
for (let key in filters) {
  Vue.filter(key, filters[key]);
}
import moment from "moment"
import moment from "moment";
Vue.prototype.$moment = moment;
@@ -91,6 +92,8 @@
Vue.prototype.getDicts = getDicts;
Vue.prototype.getConfigKey = getConfigKey;
Vue.prototype.parseTime = parseTime;
Vue.prototype.formatTime = formatTime;
Vue.prototype.daysBetween = daysBetween;
Vue.prototype.resetForm = resetForm;
Vue.prototype.addDateRange = addDateRange;
Vue.prototype.selectDictLabel = selectDictLabel;
@@ -111,7 +114,7 @@
Vue.use(directive);
Vue.use(plugins);
Vue.use(VueMeta);
Vue.use(VueAudio)
Vue.use(VueAudio);
DictData.install();
Vue.use(components);
// Vue.use(VueQuillEditor)
@@ -137,4 +140,3 @@
  store,
  render: (h) => h(App),
});