mirror of
https://github.com/MadeBaruna/paimon-moe.git
synced 2024-12-02 04:56:48 +01:00
Fix csv import on android
This commit is contained in:
parent
2efa7f4f02
commit
712d71cac3
1 changed files with 9 additions and 5 deletions
|
@ -529,10 +529,10 @@
|
|||
}
|
||||
|
||||
const readFunc = {
|
||||
'default': readPaimonExcel,
|
||||
'takagg': readGachaExportExcel,
|
||||
'wishtally': readWishTallyExcel
|
||||
}
|
||||
default: readPaimonExcel,
|
||||
takagg: readGachaExportExcel,
|
||||
wishtally: readWishTallyExcel,
|
||||
};
|
||||
|
||||
try {
|
||||
readFunc[selectedType](workbook);
|
||||
|
@ -550,7 +550,11 @@
|
|||
file.type === 'application/wps-office.xlsx'
|
||||
) {
|
||||
readExcel(file);
|
||||
} else if (file.type === 'text/csv' || file.type === 'application/vnd.ms-excel') {
|
||||
} else if (
|
||||
file.type === 'text/csv' ||
|
||||
file.type === 'application/vnd.ms-excel' ||
|
||||
file.type === 'text/comma-separated-values'
|
||||
) {
|
||||
readCSV(file);
|
||||
} else {
|
||||
pushToast($t('wish.excel.errorInvalidFile'), 'error');
|
||||
|
|
Loading…
Reference in a new issue