Skip to content

Commit

Permalink
fix: extract storage prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
chansee97 committed Apr 17, 2024
1 parent 2353bd7 commit 3d29e0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ VITE_AUTH_ROUTE_MODE=static

# 设置登陆后跳转地址
VITE_HOME_PATH = /dashboard/workbench

# 本地存储前缀
VITE_STORAGE_PREFIX=
2 changes: 1 addition & 1 deletion src/utils/storage.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const STORAGE_PREFIX = 'nova_'
const STORAGE_PREFIX = import.meta.env.VITE_STORAGE_PREFIX

interface StorageData<T> {
value: T
Expand Down

0 comments on commit 3d29e0d

Please sign in to comment.