| | |
| | | import { |
| | | parseTime, |
| | | formatTime, |
| | | followupAuthority, |
| | | resetForm, |
| | | addDateRange, |
| | | selectDictLabel, |
| | |
| | | Vue.filter(key, filters[key]); |
| | | } |
| | | import moment from "moment" |
| | | // 1. 在main.js中添加错误监听 |
| | | window.addEventListener('unhandledrejection', (event) => { |
| | | if (event.reason && event.reason.message && |
| | | event.reason.message.includes('Loading chunk')) { |
| | | // 重新加载页面 |
| | | window.location.reload(); |
| | | } |
| | | }); |
| | | |
| | | Vue.prototype.$moment = moment; |
| | | |
| | |
| | | Vue.prototype.formatTime = formatTime; |
| | | Vue.prototype.daysBetween = daysBetween; |
| | | Vue.prototype.resetForm = resetForm; |
| | | Vue.prototype.followupAuthority = followupAuthority; |
| | | Vue.prototype.addDateRange = addDateRange; |
| | | Vue.prototype.selectDictLabel = selectDictLabel; |
| | | Vue.prototype.selectDictLabels = selectDictLabels; |