mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-04 12:18:42 +08:00 
			
		
		
		
	防止时间为空出现的异常
This commit is contained in:
		@@ -7,7 +7,7 @@ const baseURL = process.env.VUE_APP_BASE_API
 | 
			
		||||
 | 
			
		||||
// 日期格式化
 | 
			
		||||
export function parseTime(time, pattern) {
 | 
			
		||||
	if (arguments.length === 0) {
 | 
			
		||||
	if (arguments.length === 0 || !time) {
 | 
			
		||||
		return null
 | 
			
		||||
	}
 | 
			
		||||
	const format = pattern || '{y}-{m}-{d} {h}:{i}:{s}'
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user