fix(version-check): clear localStorage if need

This commit is contained in:
yangsy
2025-11-19 13:54:41 +08:00
parent 5fa668acd3
commit dfbdc6d828
4 changed files with 17 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ export const getAppEnvConfig = () => {
VITE_LAMP_PASSWORD,
VITE_LAMP_AUTHORIZATION,
VITE_DEBUG_CODE,
VITE_STORAGE_VERSION,
} = env;
return {
requestInterval: Number.parseInt(VITE_REQUEST_INTERVAL as string),
@@ -20,5 +21,6 @@ export const getAppEnvConfig = () => {
lampPassword: VITE_LAMP_PASSWORD as string,
lampAuthorization: VITE_LAMP_AUTHORIZATION as string,
debugCode: VITE_DEBUG_CODE as string,
storageVersion: VITE_STORAGE_VERSION as string,
};
};