Skip to content

Commit

Permalink
update and fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kloping committed Dec 1, 2024
1 parent 17accf7 commit 3047dd4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/pages/v0/pnote.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,10 @@ const handleCellEnter = (row: any, column: any, cell: any, event: any) => {
const handleCellLeave = (row: any, column: any, cell: any, event: any) => {
row.isEdit = false
//判断mr是否修改
if (row.type == '' && row.stype == '' && row.account == '' && row.pwd == '' && row.tips == '') {
if (row.id != 0) {
service.delete(`/api/pwdnote/${row.id}`).then(res => {
if (res.code == 200) {
//通过id移除dataList指定元素
dataList.splice(dataList.findIndex(item => item.id === row.id), 1)
toast("删除成功", "success", 2000)
} else {
Expand Down

0 comments on commit 3047dd4

Please sign in to comment.