// 删除属性操作
        async removeParams(attr_id){
            const confirmResult = await this.$confirm('此操作将永久删除该参数, 是否继续?', '提示', {
                                confirmButtonText: '确定',
                                cancelButtonText: '取消',
                                type: 'warning'
               }).catch(err => err)

            // 取消删除操作
            if(confirmResult !== 'confirm'){
                return this.$message.info('已取消删除')
            }
            //删除 
            const {data:res} = await this.$http.delete(`categories/${this.cateId}/attributes/${attr_id}`)
            if(res.meta.status !== 200){
                return this.$message.error('删除失败')
            }
            this.$message.success('删除成功')
            this.getParamsData()
        }

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-07
  • 2022-12-23
猜你喜欢
  • 2021-06-25
  • 2022-12-23
  • 2022-01-01
  • 2021-06-12
  • 2022-01-11
  • 2021-08-08
  • 2022-12-23
相关资源
相似解决方案