Compare commits

..

No commits in common. "44dafe6068ba0f7fd6cd0898b731c44bf70aee36" and "66ea08e71111dae4552e89874d10996a3ee0376d" have entirely different histories.

2 changed files with 4 additions and 5 deletions

View File

@ -120,12 +120,11 @@ export function useDownload() {
const finalFilename = filename || response.headers.get('Download-Filename') || `download-${timestamp}`;
/*老旧浏览器还是存在流式传输兼容问题,暂时屏蔽,只使用普通传输*/
/*if (response.body) {
if (response.body) {
const contentLength = Number(response.headers.get('Content-Length'));
await downloadByStream(response.body, finalFilename, contentLength);
return;
}*/
}
const responseContentType = response.headers.get('Content-Type');
const mainType = responseContentType?.split(';')[0]?.trim() || 'application/octet-stream';

View File

@ -58,11 +58,11 @@ const setDateRange = (type: 'today' | 'week' | 'month') => {
};
//
/*onMounted(() => {
onMounted(() => {
console.log(JSON.stringify(userInfo));
console.log("是否营销:" + userInfo.user.userCategory);
console.log("营销编号:" + userInfo.user.mktNo);
});*/
});
</script>
<template>