dashboard
repositories
filestore
activity
search
login
yskj
/
iot_drone_web
无人机前端
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
添加环境配置区分
husq
2023-09-27
2c2bc8614c8ea0ce386369eb4924da1e6aa052d1
[yskj/iot_drone_web.git]
/
src
/
utils
/
uuid.ts
1
2
3
4
5
6
export function uuidv4 () {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
const r = Math.random() * 16 | 0; const v = c === 'x' ? r : (r & 0x3 | 0x8)
return v.toString(16)
})
}