mirror of
https://gitee.com/dromara/go-view.git
synced 2025-04-06 03:58:04 +08:00
fix: 修改类型错误的问题
This commit is contained in:
parent
7fcfb953bd
commit
0e1ae71b78
@ -48,7 +48,7 @@ let content = ref('')
|
|||||||
|
|
||||||
// 从sessionStorage 获取数据
|
// 从sessionStorage 获取数据
|
||||||
function getDataBySession() {
|
function getDataBySession() {
|
||||||
const localStorageInfo: ChartEditStorageType = getSessionStorageInfo() as ChartEditStorageType
|
const localStorageInfo: ChartEditStorageType = getSessionStorageInfo() as unknown as ChartEditStorageType
|
||||||
content.value = JSON.stringify(localStorageInfo, undefined, 2)
|
content.value = JSON.stringify(localStorageInfo, undefined, 2)
|
||||||
}
|
}
|
||||||
getDataBySession()
|
getDataBySession()
|
||||||
|
@ -49,7 +49,7 @@ const storageList: ChartEditStorageType[] = getSessionStorage(
|
|||||||
StorageEnum.GO_CHART_STORAGE_LIST
|
StorageEnum.GO_CHART_STORAGE_LIST
|
||||||
)
|
)
|
||||||
|
|
||||||
const localStorageInfo = await getSessionStorageInfo() as ChartEditStorageType
|
const localStorageInfo = await getSessionStorageInfo() as unknown as ChartEditStorageType
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
if(localStorageInfo.isRelease === false) {
|
if(localStorageInfo.isRelease === false) {
|
||||||
|
@ -12,7 +12,7 @@ import { ref } from 'vue'
|
|||||||
import Preview from './index.vue'
|
import Preview from './index.vue'
|
||||||
|
|
||||||
let key = ref(Date.now())
|
let key = ref(Date.now())
|
||||||
let localStorageInfo: ChartEditStorageType = getSessionStorageInfo() as ChartEditStorageType
|
let localStorageInfo: ChartEditStorageType = getSessionStorageInfo() as unknown as ChartEditStorageType
|
||||||
|
|
||||||
// 数据变更 -> 同步sessionStorage -> reload页面 (重新执行Mounted)
|
// 数据变更 -> 同步sessionStorage -> reload页面 (重新执行Mounted)
|
||||||
;[SavePageEnum.JSON, SavePageEnum.CHART].forEach((saveEvent: string) => {
|
;[SavePageEnum.JSON, SavePageEnum.CHART].forEach((saveEvent: string) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user