apiのパスを修正

This commit is contained in:
mesi 2024-01-20 18:22:03 +09:00
parent 125acea00f
commit 6f0daf47fd
1 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ import * as Misskey from 'misskey-js';
import MkModal from '@/components/MkModal.vue'; import MkModal from '@/components/MkModal.vue';
import { i18n } from '@/i18n.js'; import { i18n } from '@/i18n.js';
import * as os from '@/os.js'; import * as os from '@/os.js';
import { api } from '@/scripts/api.js'; import { misskeyApi } from '@/scripts/misskey-api.js';
const modal = shallowRef<InstanceType<typeof MkModal>>(); const modal = shallowRef<InstanceType<typeof MkModal>>();
const channelsButton = shallowRef<InstanceType<typeof HTMLButtonElement>>(); const channelsButton = shallowRef<InstanceType<typeof HTMLButtonElement>>();
@ -99,7 +99,7 @@ const currentChannel = ref<Misskey.entities.Channel | undefined>(props.currentCh
const currentChannelName = computed<string | null>(() => currentChannel.value?.name ?? null); const currentChannelName = computed<string | null>(() => currentChannel.value?.name ?? null);
async function fetchChannels() { async function fetchChannels() {
const res = await api('channels/my-favorites', { const res = await misskeyApi('channels/my-favorites', {
limit: 100, limit: 100,
}); });
channels.value.splice(0, 0, ...res); channels.value.splice(0, 0, ...res);