feat: 组表单设置默认token

This commit is contained in:
dhb52 2024-05-23 22:39:43 +08:00
parent 5232221c7b
commit e6c9d21a41
2 changed files with 5 additions and 1 deletions

4
.env
View File

@ -4,6 +4,8 @@ VITE_APP_DESC=A flexible, reliable, and fast platform for distributed task retry
VITE_APP_VERSION=1.0.0-beta2
VITE_APP_DEFAULT_TOKEN=SJ_Wyz3dmsdbDOkDujOTSSoBjGQP1BMsVnj
# the prefix of the icon name
VITE_ICON_PREFIX=icon
@ -46,3 +48,5 @@ VITE_SOURCE_MAP=N
# Used to differentiate storage across different domains
VITE_STORAGE_PREFIX=

View File

@ -52,7 +52,7 @@ const model: Model = reactive(createDefaultModel());
function createDefaultModel(): Model {
return {
groupName: '',
token: generateToken(32),
token: import.meta.env.VITE_APP_DEFAULT_TOKEN || '',
groupStatus: 1,
description: '',
idGeneratorMode: 2,