This commit is contained in:
wxd
2024-10-02 11:33:14 +08:00
parent 708028c02f
commit 0a273a24dc
10 changed files with 60 additions and 42 deletions

View File

@@ -111,9 +111,10 @@ export default defineComponent({
let setReadStatus = (value:any)=>{
return new Promise((resolve,reject)=>{
if(value.isRead == 1)return reject('')
let id = value.senderId?value.senderId:value.id
let data = {
type:accountMessage.activeKey,
notificationIdList:value.id
notificationIdList:id
}
Https.axiosPost(Https.httpUrls.setReadStatus,'',{params:data}).then((rv)=>{
if(rv){
@@ -143,9 +144,9 @@ export default defineComponent({
return new Promise((resolve,reject)=>{
data.type = accountMessage.activeKey
let url = Https.httpUrls.getHistoryNotification
if(data.type == 'follow'){
url = Https.httpUrls.porfolioGetFollowerList
}
// if(data.type == 'follow'){
// url = Https.httpUrls.porfolioGetFollowerList
// }
Https.axiosPost(url,data).then((rv)=>{
if(rv){
// domRefs[data.type][0].setmessageList(rv,data)