| | |
| | | import DictData from "@/components/DictData"; |
| | | import { checkPermi } from "@/utils/permission"; // 权限判断函数 |
| | | import { getToken } from "@/utils/auth"; |
| | | // 时间转换 |
| | | import Moment from "moment"; |
| | | |
| | | // 全局方法挂载 |
| | | Vue.prototype.getDicts = getDicts; |
| | |
| | | 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.170:8002"; |
| | | Vue.prototype.javaApi = "http://114.132.189.42:7012"; |
| | | Vue.prototype.checkPermi = checkPermi; |
| | | Vue.prototype.uploadHeader = { |
| | | Authorization: "Bearer " + getToken(), |
| | |
| | | }); |
| | | }, |
| | | }); |
| | | Vue.use(Moment); |
| | | Vue.prototype.$moment = Moment; |
| | | |
| | | // 全局组件挂载 |
| | | Vue.component("DictTag", DictTag); |