gaoluyang
2025-03-10 b373b324b677d377abbcbefd7434e4af4d8f64cc
src/main.js
@@ -26,6 +26,7 @@
  selectDictLabels,
  handleTree,
} from "@/utils/ruoyi";
import { dictToValue } from "@/utils/index";
// 分页组件
import Pagination from "@/components/Pagination";
// 自定义表格工具组件
@@ -48,6 +49,7 @@
import { getToken } from "@/utils/auth";
// 时间转换
import Moment from "moment";
import basicContainer from './components/basic-container/main'
// 全局方法挂载
Vue.prototype.getDicts = getDicts;
@@ -59,6 +61,7 @@
Vue.prototype.selectDictLabels = selectDictLabels;
Vue.prototype.download = download;
Vue.prototype.handleTree = handleTree;
Vue.prototype.dictToValue = dictToValue;
Vue.prototype.HaveJson = (val) => {
  return JSON.parse(JSON.stringify(val));
};
@@ -69,6 +72,7 @@
Vue.prototype.uploadHeader = {
  Authorization: "Bearer " + getToken(),
};
// 解决el-radio-group单选框自身的bug
Vue.directive("removeAriaHidden", {
  bind(el, binding) {
@@ -89,6 +93,8 @@
Vue.component("FileUpload", FileUpload);
Vue.component("ImageUpload", ImageUpload);
Vue.component("ImagePreview", ImagePreview);
// 注册全局容器
Vue.component('basicContainer', basicContainer)
Vue.use(directive);
Vue.use(plugins);