| | |
| | | import { getToken } from "@/utils/auth"; |
| | | // 时间转换 |
| | | import Moment from "moment"; |
| | | import basicContainer from './components/basic-container/main' |
| | | |
| | | // 全局方法挂载 |
| | | Vue.prototype.getDicts = getDicts; |
| | |
| | | }; |
| | | 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) { |
| | |
| | | Vue.component("FileUpload", FileUpload); |
| | | Vue.component("ImageUpload", ImageUpload); |
| | | Vue.component("ImagePreview", ImagePreview); |
| | | // 注册全局容器 |
| | | Vue.component('basicContainer', basicContainer) |
| | | |
| | | Vue.use(directive); |
| | | Vue.use(plugins); |