Commit c6f94b01 authored by chenqikuai's avatar chenqikuai

fix: SYCZ-922专辑管理,删除专辑后,没有从页面自动消失

parent aa0c5ec3
......@@ -12,8 +12,7 @@ export async function downloadExcelTemplate(categoryId: number) {
responseType: "blob",
},
});
const blob = new Blob([res!.data as unknown as Blob]);
const blob = new Blob([res!.data]);
downlaod(blob, "模板.xlsx");
}
......
......@@ -69,7 +69,11 @@ async function $ajax(
// 返回res
const res: AxiosResponse<ResBase> = await axios(result);
if (param && param.config && param.config.responseType === "blob") {
return res;
return {
code: 200,
msg: "",
data: res.data as unknown as Blob,
};
}
if (res.data.code === 200) {
// mock 为 0
......
......@@ -55,7 +55,8 @@ const deleteAlbum = (item: any) => {
ids: [item.id],
},
});
if (ret && ret.data.code === 200) {
console.log(ret, "show ret");
if (ret && ret!.code === 200) {
ElMessage.success("删除成功");
emit("update");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment