refactor chat
This commit is contained in:
1 parent
565b367c59
commit
cd5dbaa264
20 files changed
+192
-230
No files matched your search
@@ -50,7 +50,7 @@ export default defineComponent({
|
||||
computed: {
|
||||
headers() {
|
||||
return {
|
||||
Authorization: `Bearer ${this.$store.state.common.token.access}`
|
||||
Authorization: `Bearer ${this.$store.state.token.access}`
|
||||
};
|
||||
},
|
||||
urls() {
|
||||
|
||||
@@ -79,7 +79,7 @@ export default defineComponent({
|
||||
const {
|
||||
data: { items: apiUsages }
|
||||
} = await apiUsageOperator.getAll({
|
||||
user_id: this.$store.state.common.user.id,
|
||||
user_id: this.$store.state.user.id,
|
||||
application_id: this.applications?.map((application) => application.id),
|
||||
offset: 0,
|
||||
limit: 5,
|
||||
|
||||
@@ -116,7 +116,7 @@ export default defineComponent({
|
||||
const {
|
||||
data: { items: apiUsages, count }
|
||||
} = await apiUsageOperator.getAll({
|
||||
user_id: this.$store.state.common.user.id,
|
||||
user_id: this.$store.state.user.id,
|
||||
application_id: this.applications?.map((application) => application.id),
|
||||
offset: (this.page - 1) * this.limit,
|
||||
limit: this.limit,
|
||||
|
||||
Reference in new issue
Block a user