month error bugfix

This commit is contained in:
xiaoqi.cxq 2022-08-04 16:34:04 +08:00
parent 59a867b8b9
commit bfb7a6447e

View File

@ -183,7 +183,7 @@ export default modalTemplate({
const tokenStorage = filterTokenStorages[0];
const time = new Date();
const date = time.getDate();
const month = time.getMonth();
const month = time.getMonth() + 1;
const year = time.getFullYear();
let path = tokenStorage.path.replace('{YYYY}', year)
.replace('{MM}', `0${month}`.slice(-2)).replace('{DD}', `0${date}`.slice(-2));