feat: 组表单设置默认token
This commit is contained in:
parent
5232221c7b
commit
e6c9d21a41
4
.env
4
.env
@ -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_VERSION=1.0.0-beta2
|
||||||
|
|
||||||
|
VITE_APP_DEFAULT_TOKEN=SJ_Wyz3dmsdbDOkDujOTSSoBjGQP1BMsVnj
|
||||||
|
|
||||||
# the prefix of the icon name
|
# the prefix of the icon name
|
||||||
VITE_ICON_PREFIX=icon
|
VITE_ICON_PREFIX=icon
|
||||||
|
|
||||||
@ -46,3 +48,5 @@ VITE_SOURCE_MAP=N
|
|||||||
|
|
||||||
# Used to differentiate storage across different domains
|
# Used to differentiate storage across different domains
|
||||||
VITE_STORAGE_PREFIX=
|
VITE_STORAGE_PREFIX=
|
||||||
|
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ const model: Model = reactive(createDefaultModel());
|
|||||||
function createDefaultModel(): Model {
|
function createDefaultModel(): Model {
|
||||||
return {
|
return {
|
||||||
groupName: '',
|
groupName: '',
|
||||||
token: generateToken(32),
|
token: import.meta.env.VITE_APP_DEFAULT_TOKEN || '',
|
||||||
groupStatus: 1,
|
groupStatus: 1,
|
||||||
description: '',
|
description: '',
|
||||||
idGeneratorMode: 2,
|
idGeneratorMode: 2,
|
||||||
|
Loading…
Reference in New Issue
Block a user