优化页面

This commit is contained in:
haomingming
2023-03-17 10:13:35 +08:00
parent dea1555b9b
commit 589c2cf823
81 changed files with 894 additions and 524 deletions
+11 -1
View File
@@ -7,7 +7,7 @@ class API extends HTTP {
//获取oss签名数据
getOssSign(params) {
return this.request({
url: `${this.baseUrl}/oss/sign`,
url: `${this.baseUrl}/sign/oss`,
method: 'GET',
data: {
...params
@@ -464,6 +464,16 @@ class API extends HTTP {
...params
}
})
}
//获取im签名数据
getSignIM(params) {
return this.request({
url: `${this.baseUrl}/sign/im`,
method: 'GET',
data: {
...params
}
})
}
}
+1 -1
View File
@@ -17,7 +17,7 @@ const formatChatTime = date => {
const minute = date.getMinutes()
const second = date.getSeconds()
return `${[year, month, day].map(formatNumber).join('-')} ${[hour, minute].map(formatNumber).join(':')}`
return `${[month, day].map(formatNumber).join('-')} ${[hour, minute].map(formatNumber).join(':')}`
}
const getDateArr = date => {