mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-03-31 09:48:26 +08:00
refactor: websocket支持单用户多连接
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { v1 as uuidv1 } from 'uuid';
|
||||
|
||||
/**
|
||||
* 模板字符串解析,如:template = 'hahaha{name}_{id}' ,param = {name: 'hh', id: 1}
|
||||
* 解析后为 hahahahh_1
|
||||
@@ -129,3 +131,11 @@ export function getContentWidth(content: any): number {
|
||||
// }
|
||||
return flexWidth;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @returns uuid
|
||||
*/
|
||||
export function randomUuid() {
|
||||
return uuidv1();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user