Skip to content

Commit

Permalink
script for api data on social
Browse files Browse the repository at this point in the history
  • Loading branch information
raycohaex committed Jan 17, 2023
1 parent 4cf0654 commit d3d3d9e
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions src/views/Social.vue
Original file line number Diff line number Diff line change
@@ -1,20 +1,40 @@
<template>
<Sidebar />
<div class="main">
<Topbar title="Messages" />
<Topbar title="Social" />
</div>
</template>



<script>
import Sidebar from '../components/Sidebar.vue';
import Topbar from '../components/Topbar.vue';
export default {
name: 'Messages',
name: 'Social',
components: {
Topbar,
Sidebar,
},
data() {
return {
openRequests: [],
friends: [],
};
},
methods: {
async getWorkspaceData() {
const config = {
headers: { Authorization: `Bearer ${store.token}` },
};
var test = await axios.get(
'http://20.126.206.207/getRequest/'
).then((response) => {
this.openRequests = response.data.openRequests;
});
},
}
};
</script>

Expand Down

0 comments on commit d3d3d9e

Please sign in to comment.