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