This commit is contained in:
2023-02-10 12:56:02 +08:00
parent a1d657fe8d
commit 2804ed8814
2 changed files with 3 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
<script setup lang="ts">
import { useUserStore } from "~/shared/store/user"
import { filterEmptyValue, getTagColor } from "utils/functions"
import { filterEmptyValue, getTagColor, debounce } from "utils/functions"
import { ProblemFiltered } from "utils/types"
import { isDesktop } from "~/shared/composables/breakpoints"
import { getProblemList, getProblemTagList, getRandomProblemID } from "oj/api"
@@ -169,12 +169,7 @@ function rowProps(row: ProblemFiltered) {
/>
</n-form-item>
<n-form-item label="搜索">
<n-input
placeholder="输入编号或标题后回车"
clearable
v-model:value="query.keyword"
@change="search"
/>
<n-input placeholder="输入编号或标题后回车" clearable @change="search" />
</n-form-item>
<n-form-item>
<n-space>

View File

@@ -227,12 +227,7 @@ const columns = computed(() => {
<n-switch v-model:value="query.myself" />
</n-form-item>
<n-form-item label="搜索用户">
<n-input
v-model:value="query.username"
@change="search"
clearable
placeholder="输入用户后回车或点击搜索"
/>
<n-input @change="search" clearable placeholder="输入后回车或点击搜索" />
</n-form-item>
<n-form-item>
<n-space>