dmr 发表于 2025-11-12 16:51:15

vue3+ts项目开发笔记


//字典 begin
const optionsROOM_APPLICATION = ref([])
const getDictData = () => {
let dictTypes = ['ROOM_APPLICATION']
getSimpleDictItemList({ dictTypes: dictTypes, pageSize: 1000 })
    .then((response) => {
      if (response.length > 0) {
      optionsROOM_APPLICATION.value = []
      response.forEach((item) => {
          if (item.dictType == 'room_application') {
            optionsROOM_APPLICATION.value.push(item)
          }
      })
      }
    })
    .catch((err) => {
      console.log(err)
    })
}

页: [1]
查看完整版本: vue3+ts项目开发笔记