mirror of
				https://github.com/continew-org/continew-admin-ui.git
				synced 2025-10-31 22:57:15 +08:00 
			
		
		
		
	refactor: 优化 HTTP 错误提示显示时长
This commit is contained in:
		| @@ -36,7 +36,10 @@ const http: AxiosInstance = axios.create({ | ||||
|  | ||||
| const handleError = (msg: string) => { | ||||
|   if (msg.length >= 15) { | ||||
|     return notificationErrorWrapper(msg || '服务器端错误') | ||||
|     return notificationErrorWrapper({ | ||||
|       content: msg || '服务器端错误', | ||||
|       duration: 5 * 1000, | ||||
|     }) | ||||
|   } | ||||
|   return messageErrorWrapper({ | ||||
|     content: msg || '服务器端错误', | ||||
|   | ||||
		Reference in New Issue
	
	Block a user