Replace loose equality (== null, != null) with strict equality
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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: {
|
||||
|
||||
@@ -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'});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user