WXL
7 小时以前 6d7cd13eecd3a6f176d310986b4750b0c407e3a1
src/main.js
@@ -45,11 +45,13 @@
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);
@@ -73,6 +75,10 @@
import DictData from "@/components/DictData";
// 组件封装集成
import components from "./components";
// 语音组件
import VueAudio from 'vue-audio-better'
// 弹框拖动
import '@/utils/drag.js';
// 注册过滤器
// 自定义指令
import * as directives from "./directives";
@@ -89,6 +95,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;
@@ -109,6 +117,7 @@
Vue.use(directive);
Vue.use(plugins);
Vue.use(VueMeta);
Vue.use(VueAudio)
DictData.install();
Vue.use(components);
// Vue.use(VueQuillEditor)