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:
@@ -82,7 +82,7 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
selectCfmSeqSE: function() {
|
||||
let data = [];
|
||||
const data = [];
|
||||
if(this.selectCfmSeqStart) data.push(this.selectCfmSeqStart);
|
||||
if(this.selectCfmSeqEnd) data.push(this.selectCfmSeqEnd);
|
||||
data.sort((a, b) => {
|
||||
@@ -92,7 +92,7 @@ export default {
|
||||
return data;
|
||||
},
|
||||
selectCfmPtEteSE: function() {
|
||||
let data = [];
|
||||
const data = [];
|
||||
if(this.selectCfmPtEteSEStart) data.push(this.selectCfmPtEteSEStart);
|
||||
if(this.selectCfmPtEteSEEnd) data.push(this.selectCfmPtEteSEEnd);
|
||||
data.sort((a, b) => {
|
||||
@@ -102,7 +102,7 @@ export default {
|
||||
return data;
|
||||
},
|
||||
selectCfmPtPSE: function() {
|
||||
let data = [];
|
||||
const data = [];
|
||||
if(this.selectCfmPtPSEStart) data.push(this.selectCfmPtPSEStart);
|
||||
if(this.selectCfmPtPSEEnd) data.push(this.selectCfmPtPSEEnd);
|
||||
data.sort((a, b) => {
|
||||
@@ -112,7 +112,7 @@ export default {
|
||||
return data;
|
||||
},
|
||||
selectCfmWtEteSE: function() {
|
||||
let data = [];
|
||||
const data = [];
|
||||
if(this.selectCfmWtEteSEStart) data.push(this.selectCfmWtEteSEStart);
|
||||
if(this.selectCfmWtEteSEEnd) data.push(this.selectCfmWtEteSEEnd);
|
||||
data.sort((a, b) => {
|
||||
@@ -122,7 +122,7 @@ export default {
|
||||
return data;
|
||||
},
|
||||
selectCfmWtPSE: function() {
|
||||
let data = [];
|
||||
const data = [];
|
||||
if(this.selectCfmWtPSEStart) data.push(this.selectCfmWtPSEStart);
|
||||
if(this.selectCfmWtPSEEnd) data.push(this.selectCfmWtPSEEnd);
|
||||
data.sort((a, b) => {
|
||||
@@ -132,7 +132,7 @@ export default {
|
||||
return data;
|
||||
},
|
||||
selectCfmCtEteSE: function() {
|
||||
let data = [];
|
||||
const data = [];
|
||||
if(this.selectCfmCtEteSEStart) data.push(this.selectCfmCtEteSEStart);
|
||||
if(this.selectCfmCtEteSEEnd) data.push(this.selectCfmCtEteSEEnd);
|
||||
data.sort((a, b) => {
|
||||
@@ -182,7 +182,7 @@ export default {
|
||||
this.containstTasksData = data;
|
||||
});
|
||||
this.$emitter.on('actRadioData', (newData) => {
|
||||
let data = JSON.parse(JSON.stringify(newData)); // 深拷貝原始 cases 的內容
|
||||
const data = JSON.parse(JSON.stringify(newData)); // 深拷貝原始 cases 的內容
|
||||
|
||||
const categoryMapping = {
|
||||
'cfmSeqStart': ['Start', 'selectCfmSeqStart', 'selectCfmSeqEnd'],
|
||||
|
||||
Reference in New Issue
Block a user