增加基本项目配置
This commit is contained in:
15
node_modules/dayjs/esm/plugin/weekYear/index.js
generated
vendored
Normal file
15
node_modules/dayjs/esm/plugin/weekYear/index.js
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
export default (function (o, c) {
|
||||
var proto = c.prototype;
|
||||
|
||||
proto.weekYear = function () {
|
||||
var month = this.month();
|
||||
var weekOfYear = this.week();
|
||||
var year = this.year();
|
||||
|
||||
if (weekOfYear === 1 && month === 11) {
|
||||
return year + 1;
|
||||
}
|
||||
|
||||
return year;
|
||||
};
|
||||
});
|
Reference in New Issue
Block a user