fix: Issues #234 done.

This commit is contained in:
chiayin
2024-03-01 17:01:18 +08:00
parent 734ab15f68
commit 0d12c50a1b
2 changed files with 5 additions and 3 deletions

View File

@@ -128,6 +128,7 @@ export default defineStore('filesStore', {
this.$router.push({name: 'Upload'});
Swal.close(); // 關閉進度條
} catch(error) {
console.log(error);
if(error.response.status === 422) {
// msg: 'not in UTF-8' | 'insufficient columns' | 'the csv file is empty' | 'the filename does not ends with .csv'
// type: 'encoding' | 'insufficient_columns' | 'empty' | 'name_suffix'