Replace let with const where variable is never reassigned in Vue files

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 09:38:40 +08:00
parent 64372c7043
commit 1d0d938193
21 changed files with 176 additions and 191 deletions

View File

@@ -311,7 +311,7 @@
*/
allFiles: function() {
if(this.store.allFiles.length !== 0){
let sortFiles = Array.from(this.store.allFiles);
const sortFiles = Array.from(this.store.allFiles);
sortFiles.sort((x,y) => new Date(y.updated_base) - new Date(x.updated_base));
return sortFiles;
}
@@ -329,7 +329,7 @@
* Compare Submit button disabled
*/
isCompareDisabledButton: function() {
let result = this.primaryDragData.length === 0 || this.secondaryDragData.length === 0;
const result = this.primaryDragData.length === 0 || this.secondaryDragData.length === 0;
return result;
},
/**
@@ -498,7 +498,7 @@
default:
break;
}
let content = `<li>[${i.type}] ${i.name}</li>`;
const content = `<li>[${i.type}] ${i.name}</li>`;
srt += content;
});
}
@@ -521,7 +521,7 @@
break;
}
let content = `<li>[${file.type}] ${file.name}</li>`;
const content = `<li>[${file.type}] ${file.name}</li>`;
srt += content;
});
}