var nowDate = new Date(); var year = nowDate.getFullYear(); var month = nowDate.getMonth() + 1 < 10 ? "0" + (nowDate.getMonth() + 1) : nowDate.getMonth() + 1; var day = nowDate.getDate() < 10 ? "0" + nowDate.getDate() : nowDate .getDate(); var newDate = year + "-" + month + "-" + day; var http = 'https://decaisoft.com:443' export default { newDate,http }