Skip to content

Commit 11e0fc2

Browse files
nfmgr refresh
1 parent 33930f9 commit 11e0fc2

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/pages/NewFriends.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,15 @@ const handle = (req, atti) => {
6363
icon: res.data.code===200?'success':'error',
6464
});
6565
list.value = list.value.filter((item) => item.username !== req);
66+
axios.post('http://8.130.48.157:8081/api/info', '', {
67+
headers: {
68+
'Authorization': `Bearer ${token}`,
69+
'Content-Type': 'application-json'
70+
}
71+
}
72+
).then((res) => {
73+
store.info.friends = res.data.message[username].friends;
74+
})
6675
})
6776
6877
}

src/stores/check.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const useCheckStore = defineStore('check', () => {
1616
}
1717
const update = () => {
1818
if (window.location.pathname !== '/login' && window.location.pathname !== '/signup')
19-
axios.post('http://8.130.48.157:8081/api/check?type=new', '', {
19+
axios.post('http://127.0.0.1:8081/api/check?type=new', '', {
2020

2121
headers: {
2222
Authorization: `Bearer ${LocalStorage.getItem('token')}`

0 commit comments

Comments
 (0)