mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
* 更新Dockerfile构建文件,升级NodeJS依赖版本。 * 遵循ESLint重新格式化代码,修复部分警告 * 登录Token失效增加登出提示 * 网络请求问题增加错误错误提示 * 升级UI依赖库
14 lines
338 B
Go
14 lines
338 B
Go
export default {
|
|
UUID: () => {
|
|
const s = []
|
|
const hexDigits = '0123456789abcdef'
|
|
for (let i = 0; i < 36; i++) {
|
|
s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1)
|
|
}
|
|
s[14] = '4' // bits 12-15 of the time_hi_and_version field to 0010
|
|
s[8] = s[13] = s[18] = s[23] = '-'
|
|
|
|
return s.join('')
|
|
}
|
|
}
|