Replace loose equality (== null, != null) with strict equality
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
3eec131ae0
commit
64372c7043
8 files changed
+20
-20
No files matched your search
@@ -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