const globalData = { publicUrl: 'https://sqdx.jiaxintech.com'//测试地址 // publicUrl: 'https://sqpx.jiaxintech.com'//正式地址 // publicUrl:'http://10.16.10.139'//ly // publicUrl:'http://10.16.4.19:80'//hyb // publicUrl:'http://10.16.4.26:80'//zxq }; const formatTime = date => { const year = date.getFullYear() const month = date.getMonth() + 1 const day = date.getDate() const hour = date.getHours() const minute = date.getMinutes() const second = date.getSeconds() return [year, month, day].map(formatNumber).join('/') + ' ' + [hour, minute, second].map(formatNumber).join(':') } const formatNumber = n => { n = n.toString() return n[1] ? n : '0' + n } module.exports = { globalData: globalData, formatTime: formatTime }