修改部分规则模块删除无用前端 新增前端界面
This commit is contained in:
13
modeler/src/utils/strings.ts
Normal file
13
modeler/src/utils/strings.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* This file is part of the kernelstudio package.
|
||||
*
|
||||
* (c) 2014-2025 zlin <admin@kernelstudio.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE file
|
||||
* that was distributed with this source code.
|
||||
*/
|
||||
|
||||
export const generateKey = (type: string | null = ''): string => {
|
||||
return `${type ? (type + '_') : ''}${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 10)}`
|
||||
.replace('-', '_').toLowerCase();
|
||||
};
|
||||
Reference in New Issue
Block a user