vue项目引入uuid报错,关键之前都没报,很怪,最好修改引入就好了

步骤

// 之前
import uuid from 'uuid'
uuid()


// 修改后
import { v4 as uuidv4 } from 'uuid'
uuidv4()

相关文章: