wuhongyu 5 năm trước cách đây
mục cha
commit
3fc1afae8c
2 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 1 1
      src/layout/index/mainData.vue
  2. 1 0
      src/views/home/index.vue

+ 1 - 1
src/layout/index/mainData.vue

@@ -66,7 +66,7 @@ export default {
     getMD(date) {
       let arr = date.split('-');
       //${arr[1]}-
-      return `${arr[2]}`;
+      return `${arr[1]}-${arr[2]}`;
     },
   },
 };

+ 1 - 0
src/views/home/index.vue

@@ -120,6 +120,7 @@ export default {
     },
     //点击日期获取课程
     getLesson(date) {
+      this.$set(this, `today`, date);
       var res = this.originLesson.filter(item => item.date === date.date);
       this.$set(this, `lesson`, res);
     },