mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 20:36:43 +08:00
修复案例的浏览记录中,时间戳显示格式问题
This commit is contained in:
@@ -664,12 +664,6 @@ export default {
|
|||||||
return !this.speciData.some(item => item.fielclass);
|
return !this.speciData.some(item => item.fielclass);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
formatDateTime(dateArray) {
|
|
||||||
if (!dateArray || dateArray.length !== 6) return '';
|
|
||||||
const [year, month, day, hour, minute, second] = dateArray;
|
|
||||||
const pad = (num) => num.toString().padStart(2, '0');
|
|
||||||
return `${year}-${pad(month)}-${pad(day)} ${pad(hour)}:${pad(minute)}:${pad(second)}`;
|
|
||||||
},
|
|
||||||
beforeRouteLeave (to, from, next) {
|
beforeRouteLeave (to, from, next) {
|
||||||
const isScroll = 'caseDetail,caseCharts,caseExcellent'
|
const isScroll = 'caseDetail,caseCharts,caseExcellent'
|
||||||
if(!isScroll.includes(to.name)){
|
if(!isScroll.includes(to.name)){
|
||||||
@@ -868,6 +862,12 @@ export default {
|
|||||||
this.popularityName = this.switch[e]
|
this.popularityName = this.switch[e]
|
||||||
this.getPopularity()
|
this.getPopularity()
|
||||||
},
|
},
|
||||||
|
formatDateTime(dateArray) {
|
||||||
|
if (!dateArray || dateArray.length !== 6) return '';
|
||||||
|
const [year, month, day, hour, minute, second] = dateArray;
|
||||||
|
const pad = (num) => num.toString().padStart(2, '0');
|
||||||
|
return `${year}-${pad(month)}-${pad(day)} ${pad(hour)}:${pad(minute)}:${pad(second)}`;
|
||||||
|
},
|
||||||
handleType(msg){
|
handleType(msg){
|
||||||
// this.queryCondition.type = msg
|
// this.queryCondition.type = msg
|
||||||
},
|
},
|
||||||
@@ -2811,3 +2811,4 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user