Skip to content

Commit

Permalink
Fixing refactoring errors (#238)
Browse files Browse the repository at this point in the history
## Изменения
Фикс ошибок, возникших при изменении апи на apiClient.

## Детали реализации

- Изменил условие проверки стора приложений, чтобы совершался запрос.
  • Loading branch information
BatuevIO authored Sep 29, 2024
1 parent aafed68 commit 0607327
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/router/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ export const authHandler: NavigationGuard = async to => {
},
});

console.log(data, response);
if (response.ok && data?.token) {
LocalStorage.set(LocalStorageItem.Token, data.token);
profileStore.updateToken();
Expand Down
2 changes: 1 addition & 1 deletion src/views/apps/AsyncContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const appsStore = useAppsStore();
const profileStore = useProfileStore();
const toastStore = useToastStore();

if (!appsStore.categories) {
if (appsStore.categories.length == 0) {
const { data } = await apiClient.GET('/services/category', {
params: { query: { info: ['buttons'] } },
});
Expand Down

0 comments on commit 0607327

Please sign in to comment.