Skip to content

Commit

Permalink
fix: some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
icebergtsn committed Sep 24, 2024
1 parent 7be29bb commit d574ae7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 26 deletions.
5 changes: 2 additions & 3 deletions frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<script lang="ts">
import { useAppStore } from 'src/stores/app';
import { onBeforeUnmount, onMounted } from 'vue';
import { onBeforeMount, onBeforeUnmount } from 'vue';
import { useSocketStore } from 'src/stores/websocketStore';
import { BtNotify, NotifyDefinedType } from '@bytetrade/ui';
import { bus, BUS_EVENT } from 'src/utils/bus';
Expand Down Expand Up @@ -39,8 +39,7 @@ export default {
}
}
onMounted(async () => {
await appStore.prefetch();
onBeforeMount(async () => {
await menuStore.init();
if (!appStore.isPublic) {
// testSatisfies();
Expand Down
15 changes: 0 additions & 15 deletions frontend/src/api/storeApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,23 +108,8 @@ export async function getTop(category?: string): Promise<AppStoreInfo[]> {
return [];
}
}

export async function getTypes(): Promise<AppStoreInfo[]> {
try {
let url = '/app-store/v1/applications/menutypes';
const { data }: any = await axios.get(globalConfig.url + url);
console.log('get_types');
console.log(data.items);
return data.items ?? [];
} catch (e) {
console.log(e);
return [];
}
}

export async function getLatest(category?: string): Promise<AppStoreInfo[]> {
try {

let url = '/app-store/v1/applications/latest';
if (category) {
url = url + '?category=' + category;
Expand Down
3 changes: 0 additions & 3 deletions frontend/src/assets/fonts/back.svg

This file was deleted.

9 changes: 4 additions & 5 deletions frontend/src/pages/application/AppDetailPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,6 @@ const appStore = useAppStore();
const { t } = useI18n();
const $q = useQuasar();
const item = ref<AppStoreInfo>();
const test = ref();
const loadStyle = async () => {
if ($q.dark.isActive) {
Expand Down Expand Up @@ -957,13 +956,13 @@ const entrancePermissionTask: OnUpdateUITask = {
}
}
const firstLabel = t('permission.entrance_visibility_label', {
desktopSize: `${desktopSize > 0 ? desktopSize : 'no'}`,
backendSize: ` ${backendSize > 0 ? backendSize : 'no'}`
desktopSize: `${desktopSize > 0 ? desktopSize : '0'}`,
backendSize: ` ${backendSize > 0 ? backendSize : '0'}`
});
const secondLabel = t('permission.entrance_auth_level_label', {
privateSize: `${privateSize > 0 ? privateSize : 'no'}`,
publicSize: ` ${publicSize > 0 ? publicSize : 'no'}`
privateSize: `${privateSize > 0 ? privateSize : '0'}`,
publicSize: ` ${publicSize > 0 ? publicSize : '0'}`
});
entrancePermissionData.value.push({
Expand Down

0 comments on commit d574ae7

Please sign in to comment.