保誠-保戶業務員媒合平台
Tomas
2023-12-26 53eed97a753c8fe36fd021168e106eccb86713be
Refactor localStorage service to handle different data types
修改1個檔案
2 ■■■ 已變更過的檔案
PAMapp/store/localStorage.service.ts 2 ●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
PAMapp/store/localStorage.service.ts
@@ -41,7 +41,7 @@
    const storageData = localStorage.getItem(keyName);
    const itemType = initialValueOfStorageItemDto[keyName];
    const prepareData = storageData
                          ? typeof itemType === 'string'
                          ? itemType === String
                            ? storageData
                            : JSON.parse(storageData)
                          : null;