import shortid from 'shortid'

const uid = {
  gen: shortid.generate(),
}

export default uid

import shortid from 'shortid'

const uid = {
  gen: shortid.generate,
}

export default uid

fix uid gen error