Browse Source

调整星期显示

lite
453530270@qq.com 3 years ago
parent
commit
58ce438a6b
  1. 4
      src/App.vue

4
src/App.vue

@ -42,13 +42,13 @@ export default {
};
},
created() {
const cweeks = ['星期一', '星期二', '星期三', '星期四', '星期五', '星期六', '星期日',]
const cweeks = ['星期日','星期一', '星期二', '星期三', '星期四', '星期五', '星期六', ]
//
const year = this.date.getFullYear();
const month = ('0' + (this.date.getMonth() + 1)).slice(-2);
const day = ('0' + this.date.getDate()).slice(-2);
//
const wday = this.date.getDay() - 1;
const wday = this.date.getDay();
//
const hours = ('0' + this.date.getHours()).slice(-2);
const minutes = ('0' + this.date.getMinutes()).slice(-2);

Loading…
Cancel
Save