10.10综合交易所原始源码-管理后台
1
admin
2026-01-06 089bf5d2378b3c4a61d795b2a92bede2c193b771
src/components/user/user-contacts/index.js
New file
@@ -0,0 +1,35 @@
import UserContacts from './UserContacts'
export default {
  install(Vue) {
    function Contacts(options) {
      let _vm = this
      let close = () => {
        el.$destroy()
        document.body.removeChild(el.$el)
      }
      const el = new Vue({
        router: _vm.$router,
        store: _vm.$store,
        render(h) {
          return h(UserContacts, {
            on: {
              close,
              confirm: data => {
                options.confirm(data)
                close()
              },
            },
            props: {},
          })
        },
      }).$mount()
      document.body.appendChild(el.$el)
    }
    Vue.prototype.$contacts = Contacts
  },
}