mirror of
https://gitee.com/dromara/go-view.git
synced 2025-04-06 03:58:04 +08:00
Merge branch 'dev' into master-fetch-dev
This commit is contained in:
commit
62d63c3f65
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user