summaryrefslogtreecommitdiff
path: root/store
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-09-18 17:58:26 +0200
committerSanto Cariotti <santo@dcariotti.me>2022-09-18 17:58:26 +0200
commitbfdae8ae625b69c4940dda37f1ef79dc92ce5f92 (patch)
tree47a5484d926ca8c7209376f9a77225a50678a0fb /store
parent5d74f6c7c09ceb4b68bd0265e6c641192080d994 (diff)
Drop authorization for models
Diffstat (limited to 'store')
-rw-r--r--store/models.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/store/models.js b/store/models.js
index b1b0b95..5f5182b 100644
--- a/store/models.js
+++ b/store/models.js
@@ -22,7 +22,7 @@ export const mutations = {
export const actions = {
// Get models usign `page`
- async getModels({ commit, getters }, page) {
+ async getModels({ commit }, page) {
commit("loadingStatus", true, { root: true });
let res = { status: 0, data: null };
let api = this.$config.api;
@@ -32,7 +32,6 @@ export const actions = {
await fetch(`${api}/v1/models?page=${page}`, {
headers: {
"Content-Type": "application/json",
- Authorization: `Bearer ${getters.accessToken}`,
},
})
.then(async (response) => {