feat: 更新Type类型

This commit is contained in:
a876691666
2022-11-27 11:40:00 +08:00
parent 8230757bd1
commit 02ec3c78d6
11 changed files with 36 additions and 26 deletions
+2 -2
View File
@@ -18,8 +18,8 @@ export const getSessionStorageInfo = async () => {
// 是否本地预览
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) {
const res = await fetchProjectApi({ projectId: id })
if (res && res.code === ResultEnum.SUCCESS) {
const { content, state } = res.data
if (state === -1) {
// 跳转未发布页