We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae96737 commit 4df322cCopy full SHA for 4df322c
src/model/book.js
@@ -27,7 +27,7 @@ class Book {
27
return res
28
}
29
30
- async delectBook(id) {
+ async deleteBook(id) {
31
const res = await _delete(`v1/book/${id}`)
32
33
src/view/book/book-list.vue
@@ -75,7 +75,7 @@ export default {
75
cancelButtonText: '取消',
76
type: 'warning',
77
}).then(async () => {
78
- const res = await book.delectBook(val.row.id)
+ const res = await book.deleteBook(val.row.id)
79
if (res.code < window.MAX_SUCCESS_CODE) {
80
this.getBooks()
81
this.$message({
0 commit comments