增加选题默认值

base
JayChou 6 months ago
parent 32252167c4
commit b669f00d92
  1. 3
      src/views/registrationGroup/index.vue

@ -244,6 +244,9 @@ const options = ref([])
const getTopicListApi = async () => {
const res: any = await getTopicList({ annualCompid: route.query.id })
console.log(res)
if(!(res.result.length == 0)){
ruleForm.topicId = res.result[0].id
}
options.value = res.result.map((item) => {
return {
value: item.id,

Loading…
Cancel
Save