unregisterVM(type, vm) {
      for (let i = this.vms.length - 1; i >= 0; i--) {
        if (this.vms[i] === undefined) {
          continue
        }
        if (this.vms[i].type === type && this.vms[i].vm === vm) {
          if (i < 4) { // 内置预留vm数
            this.vms[i] = undefined
          } else {
            this.vms.splice(i, 1)
          }
          break
        }
      }
    }
/**
     * Unregister component instance
     * @param {*} vm component instance
     */
Unregister component instance
@param {*} vm component instance
Unregister component instance @param { * } vm component instance
unregisterVM(type, vm) {
      for (let i = this.vms.length - 1; i >= 0; i--) {
        if (this.vms[i] === undefined) {
          continue
        }
        if (this.vms[i].type === type && this.vms[i].vm === vm) {
          if (i < 4) { 
            this.vms[i] = undefined
          } else {
            this.vms.splice(i, 1)
          }
          break
        }
      }
    }
unregisterVM ( type , vm ) { for ( let i = this . vms . length - 1 ; i >= 0 ; i -- ) { if ( this . vms [ i ] === undefined ) { continue } if ( this . vms [ i ] . type === type && this . vms [ i ] . vm === vm ) { if ( i < 4 ) { this . vms [ i ] = undefined } else { this . vms . splice ( i , 1 ) } break } } }
Unregister component instance
 @param {*} vm component instance
Unregister component instance @param { * } vm component instance
// 内置预留vm数