| | |
| | | import './util/AntDesign' |
| | | import 'ant-design-vue/dist/antd.css' |
| | | import moment from 'moment' |
| | | |
| | | //设置组件默认中文 |
| | | import 'moment/locale/zh-cn'; |
| | | import '@/util/permission' |
| | | import {message,Modal} from "ant-design-vue"; |
| | | moment.locale('zh-cn'); |
| | | |
| | | import prevent from './directive/index'//你的文件路径 |
| | | Vue.use(prevent) |
| | | Vue.config.productionTip = false |
| | | |
| | | Vue.filter('filterTime', (value) => { |
| | |
| | | return moment(value).from(moment()) |
| | | } |
| | | }) |
| | | |
| | | Vue.prototype.$message = message; |
| | | Vue.prototype.$confirm = Modal.confirm; |
| | | message.config({ |
| | | duration: 2 |
| | | }) |
| | | new Vue({ |
| | | router, |
| | | store, |