MCPcopy Create free account
hub / github.com/chunshand/qdev / loadData

Function loadData

admin/src/hooks/useFetchSelect.ts:32–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30
31 /** 调用接口获取数据 */
32 const loadData = () => {
33 loading.value = true
34 options.value = []
35 api()
36 .then((res) => {
37 options.value = res.data
38 })
39 .finally(() => {
40 loading.value = false
41 })
42 }
43
44 onMounted(() => {
45 loadData()

Callers 1

useFetchSelectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected