summaryrefslogtreecommitdiff
path: root/packages/frontend/src/pages/explore.users.vue
diff options
context:
space:
mode:
authorzyoshoka <107108195+zyoshoka@users.noreply.github.com>2023-12-26 14:19:35 +0900
committerGitHub <noreply@github.com>2023-12-26 14:19:35 +0900
commit75034d9240c069baff5a24409ea172374261ea3b (patch)
tree2b701b310befef3cdd6a69e78b75f66d48809826 /packages/frontend/src/pages/explore.users.vue
parent(dev) Issue Templateに、自分で実装してPRを出したいかの意思... (diff)
downloadmisskey-75034d9240c069baff5a24409ea172374261ea3b.tar.gz
misskey-75034d9240c069baff5a24409ea172374261ea3b.tar.bz2
misskey-75034d9240c069baff5a24409ea172374261ea3b.zip
refactor(frontend): Reactivityで型を明示するように (#12791)
* refactor(frontend): Reactivityで型を明示するように * fix: プロパティの参照が誤っているのを修正 * fix: 初期化の値を空配列に書き換えていた部分をnullに置き換え
Diffstat (limited to 'packages/frontend/src/pages/explore.users.vue')
-rw-r--r--packages/frontend/src/pages/explore.users.vue5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/frontend/src/pages/explore.users.vue b/packages/frontend/src/pages/explore.users.vue
index ffebd4cd6c..73c2a94fc0 100644
--- a/packages/frontend/src/pages/explore.users.vue
+++ b/packages/frontend/src/pages/explore.users.vue
@@ -64,6 +64,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<script lang="ts" setup>
import { watch, ref, shallowRef, computed } from 'vue';
+import * as Misskey from 'misskey-js';
import MkUserList from '@/components/MkUserList.vue';
import MkFoldableSection from '@/components/MkFoldableSection.vue';
import MkTab from '@/components/MkTab.vue';
@@ -76,8 +77,8 @@ const props = defineProps<{
const origin = ref('local');
const tagsEl = shallowRef<InstanceType<typeof MkFoldableSection>>();
-const tagsLocal = ref([]);
-const tagsRemote = ref([]);
+const tagsLocal = ref<Misskey.entities.Hashtag[]>([]);
+const tagsRemote = ref<Misskey.entities.Hashtag[]>([]);
watch(() => props.tag, () => {
if (tagsEl.value) tagsEl.value.toggleContent(props.tag == null);