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:
@@ -199,7 +199,7 @@ export default {
|
||||
},
|
||||
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;
|
||||
}
|
||||
},
|
||||
@@ -286,7 +286,7 @@ export default {
|
||||
* @param {object} type 'processMapData' | 'bpmnData',可傳入以上任一。
|
||||
*/
|
||||
setNodesData(mapData) {
|
||||
let mapType = this.mapType;
|
||||
const mapType = this.mapType;
|
||||
const logFreq = {
|
||||
"total": "",
|
||||
"rel_freq": "",
|
||||
@@ -388,7 +388,7 @@ export default {
|
||||
* @param {object} type 'processMapData' | 'bpmnData',可傳入以上任一。
|
||||
*/
|
||||
setEdgesData(mapData) {
|
||||
let mapType = this.mapType;
|
||||
const mapType = this.mapType;
|
||||
//add event duration is empty
|
||||
const logDuration = {
|
||||
"total": "",
|
||||
@@ -420,8 +420,8 @@ export default {
|
||||
* @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