Fix csv import on android
parent
2efa7f4f02
commit
712d71cac3
|
@ -529,10 +529,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const readFunc = {
|
const readFunc = {
|
||||||
'default': readPaimonExcel,
|
default: readPaimonExcel,
|
||||||
'takagg': readGachaExportExcel,
|
takagg: readGachaExportExcel,
|
||||||
'wishtally': readWishTallyExcel
|
wishtally: readWishTallyExcel,
|
||||||
}
|
};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
readFunc[selectedType](workbook);
|
readFunc[selectedType](workbook);
|
||||||
|
@ -550,7 +550,11 @@
|
||||||
file.type === 'application/wps-office.xlsx'
|
file.type === 'application/wps-office.xlsx'
|
||||||
) {
|
) {
|
||||||
readExcel(file);
|
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);
|
readCSV(file);
|
||||||
} else {
|
} else {
|
||||||
pushToast($t('wish.excel.errorInvalidFile'), 'error');
|
pushToast($t('wish.excel.errorInvalidFile'), 'error');
|
||||||
|
|
Loading…
Reference in New Issue