️ 优化,存在 bug

This commit is contained in:
目棃
2024-04-04 19:51:10 +08:00
parent 6bf24bd8c2
commit ca46b8813d
3 changed files with 47 additions and 11 deletions

View File

@@ -51,7 +51,7 @@
<slot name="right"></slot>
</div>
</TOverlay>
<ToPostSearch gid="2" v-model="showSearch" :keyword="search" />
<ToPostSearch gid="2" v-model="showSearch" v-model:keyword="search" />
</template>
<script lang="ts" setup>
import { computed, onMounted, ref, watch } from "vue";
@@ -103,7 +103,7 @@ function onCancel() {
visible.value = false;
}
// 查找
// todo 存在 bug点击成就标题时可能会没有效果
async function searchDirect(word: string): Promise<void> {
await TGLogger.Info(`[ToAchiInfo][${props.data?.id}][Search] 查询 ${word}`);
search.value = word;