mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-04 12:18:42 +08:00 
			
		
		
		
	refactor: vue3 delete function
This commit is contained in:
		@@ -74,11 +74,6 @@
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // 删除操作
 | 
			
		||||
  const handleDelete = (row: ${simpleClassName}VO) => {
 | 
			
		||||
    delList(row.id, false)
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // ========== 详情相关 ==========
 | 
			
		||||
  const detailRef = ref() // 详情 Ref
 | 
			
		||||
 | 
			
		||||
@@ -161,7 +156,7 @@
 | 
			
		||||
            link
 | 
			
		||||
            type="primary"
 | 
			
		||||
            v-hasPermi="['${permissionPrefix}:delete']"
 | 
			
		||||
            @click="handleDelete(row)"
 | 
			
		||||
            @click="delList(row.id, false)"
 | 
			
		||||
        >
 | 
			
		||||
          <Icon icon="ep:delete" class="mr-1px" /> {{ t('action.del') }}
 | 
			
		||||
        </el-button>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user