You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
426 B
21 lines
426 B
<template> |
|
<uni-data-picker :localdata="localdata" placeholder="请选择问题类型" :border="false" :map="{text:'name', value: 'id'}" /> |
|
</template> |
|
|
|
<script setup> |
|
import { onMounted, ref} from 'vue' |
|
import { problemTypeTree } from '@/api/problemType' |
|
|
|
const localdata = ref([]); |
|
|
|
onMounted(() => { |
|
problemTypeTree().then(data => { |
|
localdata.value = data; |
|
}) |
|
}) |
|
|
|
</script> |
|
|
|
<style lang="scss" scoped> |
|
|
|
</style> |