You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
197 B
11 lines
197 B
4 months ago
|
/**
|
||
|
* 生成uuid
|
||
|
* */
|
||
|
const { v4: uuidv4 } = require('uuid');
|
||
|
// 需要去重- 然后转换成字符串
|
||
|
|
||
|
function makeUUID(){
|
||
|
return uuidv4().split('-').join("")
|
||
|
}
|
||
|
|
||
|
module.exports = makeUUID
|