fix: extract storage prefix

This commit is contained in:
chansee97 2024-04-17 14:09:01 +08:00
parent 2353bd7a8a
commit 3d29e0df5b
2 changed files with 4 additions and 1 deletions

3
.env
View File

@ -9,3 +9,6 @@ VITE_AUTH_ROUTE_MODE=static
# 设置登陆后跳转地址
VITE_HOME_PATH = /dashboard/workbench
# 本地存储前缀
VITE_STORAGE_PREFIX=

View File

@ -1,4 +1,4 @@
const STORAGE_PREFIX = 'nova_'
const STORAGE_PREFIX = import.meta.env.VITE_STORAGE_PREFIX
interface StorageData<T> {
value: T