Merge branch 'dev' into master-fetch-dev

This commit is contained in:
奔跑的面条 2024-12-03 08:59:52 +08:00
commit 62d63c3f65

View File

@ -60,7 +60,7 @@ import {
fetchPathByName,
routerTurnByPath,
setSessionStorage,
getLocalStorage,
getSessionStorage,
httpErrorHandle,
fetchRouteParamsLocation
} from '@/utils'
@ -95,7 +95,7 @@ const previewHandle = () => {
// id
const previewId = typeof id === 'string' ? id : id[0]
const storageInfo = chartEditStore.getStorageInfo()
const sessionStorageInfo = getLocalStorage(StorageEnum.GO_CHART_STORAGE_LIST) || []
const sessionStorageInfo = getSessionStorage(StorageEnum.GO_CHART_STORAGE_LIST) || []
if (sessionStorageInfo?.length) {
const repeateIndex = sessionStorageInfo.findIndex((e: { id: string }) => e.id === previewId)