diff --git a/src/views/Upload/index.vue b/src/views/Upload/index.vue index 21ec78e..67323d9 100644 --- a/src/views/Upload/index.vue +++ b/src/views/Upload/index.vue @@ -34,6 +34,7 @@
+ @@ -125,7 +126,8 @@ export default { // 1. 長度一樣,強制每一個都要選 // 2. 不為 null undefind let hasValue = !this.selectedColumns.includes(undefined); - let result = !(this.selectedColumns.length === this.uploadDetail?.columns.length && this.informData.length === 0 && this.repeatedData.length === 0 && hasValue) ? true : false; + let result = !(this.selectedColumns.length === this.uploadDetail?.columns.length + && this.informData.length === 0 && this.repeatedData.length === 0 && hasValue); return result }, }, @@ -318,7 +320,6 @@ export default { if(vm.uploadId == null) { vm.$router.push({name: 'Files', replace: true}); vm.$toast.default('Please upload your file.', {position: 'bottom'}); - return } }) },
{{ item }}