mirror of
https://github.com/MadeBaruna/paimon-moe.git
synced 2024-11-23 23:40:09 +01:00
Check other excel mime type
This commit is contained in:
parent
050eef3741
commit
e476be5e41
1 changed files with 4 additions and 3 deletions
|
@ -300,7 +300,10 @@
|
|||
|
||||
function checkFile(file) {
|
||||
console.log(file.type);
|
||||
if (file.type === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet') {
|
||||
if (
|
||||
file.type === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' ||
|
||||
file.type === 'application/wps-office.xlsx'
|
||||
) {
|
||||
readExcel(file);
|
||||
} else {
|
||||
pushToast($t('wish.excel.errorInvalidFile'), 'error');
|
||||
|
@ -349,7 +352,6 @@
|
|||
};
|
||||
reader.readAsArrayBuffer(file);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<div>
|
||||
|
@ -434,5 +436,4 @@
|
|||
@apply text-background;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
|
|
Loading…
Reference in a new issue