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
@@ -90,8 +90,8 @@ export const useDataListInit = () => {
id: id,
// [-1未发布, 1发布]
state: !release ? 1 : -1
}) as unknown as MyResponseType
if (res.code === ResultEnum.SUCCESS) {
})
if (res && res.code === ResultEnum.SUCCESS) {
list.value = []
fetchList()
// 发布 -> 未发布