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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user