clay commit : 解决有三级菜单时面包屑问题

This commit is contained in:
clay
2022-10-09 22:21:21 +08:00
parent b533dddb3f
commit d1215780d3
6 changed files with 66 additions and 32 deletions

View File

@@ -153,14 +153,26 @@ export default {
let time = new Date(date);
let year = time.getFullYear();
let month = time.getMonth() + 1
if (month < 10){
month = "0"+month
}
let day = time.getDate();
if (day<10){
day = "0"+ day
}
return year + "-" + month + "-" + day;
},
getMonthTime(date) {
let time = new Date(date);
let month = time.getMonth() + 1
if (month < 10){
month = "0"+month
}
let day = time.getDate();
if (day<10){
day = "0"+ day
}
return month + "-" + day;
},
},