code: function setCurrent (state, type, value) {
    let dest
    if (type === 'file') {
      dest = utils.getRefFilePath(value)
    }
  
    if (dest) {
      state.current = dest
    }
  }
docs: Set the current into state
  @param {Object} state the state
  @param {String} type ref type
  @param {String} value ref value
  @private