客服:聊天消息区域抽离封装

This commit is contained in:
puhui999
2024-06-12 17:05:14 +08:00
parent 3355f5e853
commit 760dad0436
10 changed files with 1358 additions and 508 deletions
+2 -2
View File
@@ -64,7 +64,7 @@ export const convertToInteger = (num) => {
* @description format 季度 + 星期 + 几周:"YYYY-mm-dd HH:MM:SS WWW QQQQ ZZZ"
* @returns {string} 返回拼接后的时间字符串
*/
export function formatDate(date, format) {
export function formatDate(date, format= 'YYYY-MM-DD HH:mm:ss') {
// 日期不存在,则返回空
if (!date) {
return ''
@@ -112,4 +112,4 @@ export function resetPagination(pagination) {
pagination.list = [];
pagination.total = 0;
pagination.pageNo = 1;
}
}