dashboard
repositories
filestore
activity
search
login
yskj
/
iot_drone_web
无人机前端
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
调整表格宽度
guoshilong
2023-10-13
744f3b89a2ed8832f669f322ace820d65cba33fc
[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)
})
}