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

@@ -188,7 +188,7 @@
},
computed:{
sidebarLeftValue: function() {
let result = this.sidebarView === true || this.sidebarTraces === true || this.sidebarFilter === true;
const result = this.sidebarView === true || this.sidebarTraces === true || this.sidebarFilter === true;
return result;
}
},
@@ -275,7 +275,7 @@
* @param {object} type 'processMapData' | 'bpmnData',可傳入以上任一。
*/
setNodesData(mapData) {
let mapType = this.mapType;
const mapType = this.mapType;
const logFreq = {
"total": "",
"rel_freq": "",
@@ -371,7 +371,7 @@
* @param {object} type 'processMapData' | 'bpmnData',可傳入以上任一。
*/
setEdgesData(mapData) {
let mapType = this.mapType;
const mapType = this.mapType;
//add event duration is empty
const logDuration = {
"total": "",
@@ -402,8 +402,8 @@
* @param {string} type this.mapType 'processMap' | 'bpmn',可傳入以上任一。
*/
async createCy(type) {
let graphId = document.getElementById('cy');
let mapData = type === 'processMap'? this.processMapData: this.bpmnData;
const graphId = document.getElementById('cy');
const mapData = type === 'processMap'? this.processMapData: this.bpmnData;
if(this[type].vertices.length !== 0){
this.setNodesData(mapData);