Skip to content

Commit 4cbf13a

Browse files
committed
Enhance GistList component by integrating utools plugin registration. Added registration functionality to the useSubInput hook on plugin enter, improving interaction with the Gist search feature.
1 parent a2935c7 commit 4cbf13a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/GistList.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ import { IconRefresh, IconPlus, IconDelete, IconEdit, IconSettings } from '@arco
107107
import { Message } from '@arco-design/web-vue'
108108
import { useSubInput } from '../hooks/SubInput'
109109
110-
const { onChanged } = useSubInput('', '搜索 gist', true);
110+
const { onChanged, register } = useSubInput('', '搜索 gist', true);
111111
112112
const gists = ref<Gist[]>([])
113113
const originalGists = ref<Gist[]>([])
@@ -199,6 +199,9 @@ const refreshGists = async () => {
199199
}
200200
201201
onMounted(async () => {
202+
utools.onPluginEnter(() => {
203+
register()
204+
})
202205
await refreshGists()
203206
})
204207

0 commit comments

Comments
 (0)