Replace loose equality (== null, != null) with strict equality

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 09:22:36 +08:00
parent 3eec131ae0
commit 64372c7043
8 changed files with 20 additions and 20 deletions

View File

@@ -357,7 +357,7 @@
},
allFiles: {
handler(newValue) {
if(newValue != null) this.compareData = JSON.parse(JSON.stringify(newValue));
if(newValue !== null) this.compareData = JSON.parse(JSON.stringify(newValue));
}
},
reallyDeleteData: {

View File

@@ -320,7 +320,7 @@ export default {
beforeRouteEnter(to, from, next){
// 要有 uploadID 才能進來
next(vm => {
if(vm.uploadId == null) {
if(vm.uploadId === null) {
vm.$router.push({name: 'Files', replace: true});
vm.$toast.default('Please upload your file.', {position: 'bottom'});
}