perf: 完善首页预览功能

This commit is contained in:
奔跑的面条
2022-08-30 15:03:25 +08:00
parent c48517a89b
commit 094c7ed392
5 changed files with 29 additions and 28 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ export const getSessionStorageInfo = async () => {
)
// 是否本地预览
if (!storageList) {
if (!storageList || storageList.findIndex(e => e.id === id.toString()) === -1) {
// 接口调用
const res = await fetchProjectApi({ projectId: id }) as unknown as MyResponseType
if (res.code === ResultEnum.SUCCESS) {