gaoluyang
2025-02-19 30c8d72f0d75126a729e89aaeb1e194f63a75c9f
src/main.js
@@ -26,6 +26,7 @@
  selectDictLabels,
  handleTree,
} from "@/utils/ruoyi";
import { dictToValue } from "@/utils/index";
// 分页组件
import Pagination from "@/components/Pagination";
// 自定义表格工具组件
@@ -42,6 +43,8 @@
import DictTag from "@/components/DictTag";
// 头部标签组件
import VueMeta from "vue-meta";
// 条形码生成组件
import VueBarcode from "vue-barcode";
// 字典数据组件
import DictData from "@/components/DictData";
import { checkPermi } from "@/utils/permission"; // 权限判断函数
@@ -56,6 +59,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));
};
@@ -70,6 +74,7 @@
Vue.component("FileUpload", FileUpload);
Vue.component("ImageUpload", ImageUpload);
Vue.component("ImagePreview", ImagePreview);
Vue.component('barcode', VueBarcode)
Vue.use(directive);
Vue.use(plugins);