WXL
2025-01-09 95075418735842f54c116c2dc2d18199d4408e50
src/main.js
@@ -35,9 +35,9 @@
Quill.register("modules/imageDrop", ImageDrop);
Quill.register("modules/imageResize", imageResize);
import LemonIMUI from "lemon-imui";
import "lemon-imui/dist/index.css";
Vue.use(LemonIMUI);
// import LemonIMUI from "lemon-imui";
// import "lemon-imui/dist/index.css";
// Vue.use(LemonIMUI);
import "./assets/icons"; // icon
import "./permission"; // permission control
@@ -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,8 @@
import DictData from "@/components/DictData";
// 组件封装集成
import components from "./components";
// 语音组件
import VueAudio from 'vue-audio-better'
// 注册过滤器
// 自定义指令
import * as directives from "./directives";
@@ -80,12 +84,17 @@
for (let key in filters) {
  Vue.filter(key, filters[key]);
}
import moment from "moment"
Vue.prototype.$moment = moment;
// 全局方法挂载
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;
@@ -106,6 +115,7 @@
Vue.use(directive);
Vue.use(plugins);
Vue.use(VueMeta);
Vue.use(VueAudio)
DictData.install();
Vue.use(components);
// Vue.use(VueQuillEditor)
@@ -131,3 +141,4 @@
  store,
  render: (h) => h(App),
});