remove empty onMounted and unnecessary log line

This commit is contained in:
bunnybeam 2025-07-10 13:48:47 +01:00
parent 89b5901e46
commit 7ee0245cdc
No known key found for this signature in database

View file

@ -47,7 +47,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { ref, computed, watch, onMounted } from 'vue'; import { ref, computed, watch } from 'vue';
import * as Misskey from 'misskey-js'; import * as Misskey from 'misskey-js';
import MkButton from '@/components/MkButton.vue'; import MkButton from '@/components/MkButton.vue';
import * as os from '@/os.js'; import * as os from '@/os.js';
@ -68,7 +68,6 @@ const error = ref<any>(null);
const path = computed(() => props.announcementId); const path = computed(() => props.announcementId);
function fetch() { function fetch() {
console.log("aaa");
announcement.value = null; announcement.value = null;
misskeyApi('announcements/show', { misskeyApi('announcements/show', {
announcementId: props.announcementId, announcementId: props.announcementId,
@ -113,9 +112,6 @@ definePage(() => ({
title: announcement.value ? announcement.value.title : i18n.ts.announcements, title: announcement.value ? announcement.value.title : i18n.ts.announcements,
icon: 'ti ti-speakerphone', icon: 'ti ti-speakerphone',
})); }));
onMounted(() => {
});
</script> </script>
<style lang="scss" module> <style lang="scss" module>