---完善活动告警
This commit is contained in:
1 parent
35ca8e2fe7
commit
72313018cb
6 files changed
+737
-73
No files matched your search
@@ -20,7 +20,11 @@ export const xlsxUrl = `${
|
||||
* });
|
||||
*/
|
||||
export async function readLoalXlsx(id: string): Promise<Record<string, any>[]> {
|
||||
const fileBolb = await (await fetch(`${xlsxUrl}/${id}.xlsx`)).arrayBuffer();
|
||||
let fileBolb = await (await fetch(`${xlsxUrl}/${id}.xlsx`)).arrayBuffer();
|
||||
console.log(fileBolb.byteLength)
|
||||
if(!fileBolb.byteLength){
|
||||
fileBolb = await (await fetch(`${xlsxUrl}/all.xlsx`)).arrayBuffer();
|
||||
}
|
||||
return readSheet(fileBolb, 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user