olp项目中要研究的

OLP项目待研究事项记录

#tech / dev / project #type / journal #status / seed

olp项目中要研究的


// 删除窗体
delConfirm(content?: string, tip?: string) {
  return ElMessageBox.confirm(
    content ? content : t('common.delMessage'),
    tip ? tip : t('common.confirmTitle'),
    {
      confirmButtonText: t('common.ok'),
      cancelButtonText: t('common.cancel'),
      type: 'warning'
    }
  )
},

const handleDelete = async (id: number) => {
  await message.delConfirm() // 直接使用异步函数来显示组件
  console.log('开始移除课件id', id)
  let resourceIds: string[] = [];
  resourceIds.push(id.toString())
  await ClassInfoApi.deleteMaterial(resourceIds)
  message.success(t('common.delSuccess'))
  await getList()
}
创建于 2025/1/1 更新于 2026/5/27