index.js 444 B

1234567891011121314151617181920
  1. import tab from './tab'
  2. import auth from './auth'
  3. import modal from './modal'
  4. import validation from '@/utils/test.js';
  5. import user from '../store/modules/user.js'
  6. export default {
  7. install(Vue) {
  8. // 页签操作
  9. Vue.prototype.$tab = tab
  10. // 认证对象
  11. Vue.prototype.$auth = auth
  12. // 模态框对象
  13. Vue.prototype.$modal = modal
  14. //校验
  15. Vue.prototype.$validation = validation
  16. //用户信息
  17. Vue.prototype.$user = user
  18. }
  19. }