src/mixins/install.js
/**
   * Use to install as Vue plugin
   * @param  {Object} Vue The vue instance
   */
Use to install as Vue plugin
@param  {Object} Vue The vue instance
Use to install as Vue plugin @param { Object } Vue The vue instance
install(Vue) {
    Vue.mixin({
      props: ['instance'],
      beforeCreate() {
        const findModuleName = (parent) => {
          if (!this['$vuex+'] && parent.$parent) {
            if (!parent.$parent['$vuex+']) {
              findModuleName(parent.$parent);
            } else {
              this['$vuex+'] = {
                baseStoreName: parent.$parent['$vuex+'].baseStoreName,
                storeInstanceName: parent.$parent['$vuex+'].storeInstanceName,
              };
            }
          }
        };
        findModuleName(this);
      },
    });
  }
install ( Vue ) { Vue . mixin ( { props : [ 'instance' ] , beforeCreate ( ) { const findModuleName = ( parent ) => { if ( ! this [ '$vuex+' ] && parent . $parent ) { if ( ! parent . $parent [ '$vuex+' ] ) { findModuleName ( parent . $parent ) ; } else { this [ '$vuex+' ] = { baseStoreName : parent . $parent [ '$vuex+' ] . baseStoreName , storeInstanceName : parent . $parent [ '$vuex+' ] . storeInstanceName , } ; } } } ; findModuleName ( this ) ; } , } ) ; }
Use to install as Vue plugin
 @param  {Object} Vue The vue instance
Use to install as Vue plugin @param { Object } Vue The vue instance