264 Star 1.6K Fork 1.4K

人人开源 / renren-fast-vue

gulpfile.js版本号更新是认真的吗?以前是字符串拼接,现在直接数字相加?

Backlog
家猫OR野猫  Opened this issue
// 创建版本号(年月日时分)
(function () {
  var d = new Date();
  var yy = d.getFullYear();
  var MM = d.getMonth() + 1 >= 10 ? (d.getMonth() + 1) : '0' + (d.getMonth() + 1);
  var DD = d.getDate() >= 10 ? d.getDate() : '0' + d.getDate();
  var h  = d.getHours() >= 10 ? d.getHours() : '0' + d.getHours();
  var mm = d.getMinutes() >= 10 ? d.getMinutes() : '0' + d.getMinutes();
  version = yy + MM + DD + h + mm;
  versionPath = distPath + '/' + version;
})();

输入图片说明

362361 zhaoyidong 1605606077 total 2 participants

Comments (1)

展哥 2021-01-15 11:19

这里的版本号导致打包后static目录下的图片访问不到了,求解? :sweat_smile:

Sign in to comment

Assignees
Labels
Not set
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority
JavaScript
1
https://gitee.com/renrenio/renren-fast-vue.git
git@gitee.com:renrenio/renren-fast-vue.git
renrenio
renren-fast-vue
renren-fast-vue

Search