lxp
2025-03-12 2b6e530143e59eae4d3a35eae0cf1620decfe698
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,16 +61,18 @@
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));
};
Vue.prototype.javaApi = process.env.VUE_APP_BASE_API
  ? process.env.VUE_APP_BASE_API
  : "http://192.168.0.104:8002";
  : "http://127.0.0.1:8002";
Vue.prototype.checkPermi = checkPermi;
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);