Skip to content

Commit

Permalink
Merge pull request #63 from victorLV214/dev/YFCui
Browse files Browse the repository at this point in the history
dev/YFCui
  • Loading branch information
SarekCuimian authored Nov 28, 2024
2 parents 55feed2 + 3a2c8cf commit 13e9fc7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/src/api/project/defect.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function updateDefect(data) {
// 删除缺陷
export function delDefect(defectIds) {
return request({
url: '/dev-api/project/defect/${defectId}',
url: `/dev-api/project/defect/${defectIds}`,
method: 'delete'
})
}
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/views/project/project/defects.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
</el-col>
<el-col :span="12">
<el-button size="small" type="danger" class="w-100"
@click="delReq(row)" :icon="Delete" v-if="booladmin">Delete</el-button>
@click="delDef(row)" :icon="Delete" v-if="booladmin">Delete</el-button>
</el-col>
</el-row>
</template>
Expand Down Expand Up @@ -343,7 +343,7 @@ const doEDIT = async () => {
}
const delReq = async (row) => {
const delDef = async (row) => {
await ElMessageBox.confirm(
'This action will permanently delete this defect. Continue?',
'Warning',
Expand Down

0 comments on commit 13e9fc7

Please sign in to comment.