mirror of
https://github.com/chansee97/nova-admin.git
synced 2025-04-05 04:22:49 +08:00
fix: extract storage prefix
This commit is contained in:
parent
2353bd7a8a
commit
3d29e0df5b
3
.env
3
.env
@ -9,3 +9,6 @@ VITE_AUTH_ROUTE_MODE=static
|
|||||||
|
|
||||||
# 设置登陆后跳转地址
|
# 设置登陆后跳转地址
|
||||||
VITE_HOME_PATH = /dashboard/workbench
|
VITE_HOME_PATH = /dashboard/workbench
|
||||||
|
|
||||||
|
# 本地存储前缀
|
||||||
|
VITE_STORAGE_PREFIX=
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
const STORAGE_PREFIX = 'nova_'
|
const STORAGE_PREFIX = import.meta.env.VITE_STORAGE_PREFIX
|
||||||
|
|
||||||
interface StorageData<T> {
|
interface StorageData<T> {
|
||||||
value: T
|
value: T
|
||||||
|
Loading…
x
Reference in New Issue
Block a user