Skip to content

Commit 4df322c

Browse files
authored
fix(model): fix typo (#358)
fix #357
1 parent ae96737 commit 4df322c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/model/book.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Book {
2727
return res
2828
}
2929

30-
async delectBook(id) {
30+
async deleteBook(id) {
3131
const res = await _delete(`v1/book/${id}`)
3232
return res
3333
}

src/view/book/book-list.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export default {
7575
cancelButtonText: '取消',
7676
type: 'warning',
7777
}).then(async () => {
78-
const res = await book.delectBook(val.row.id)
78+
const res = await book.deleteBook(val.row.id)
7979
if (res.code < window.MAX_SUCCESS_CODE) {
8080
this.getBooks()
8181
this.$message({

0 commit comments

Comments
 (0)