封装函数

This commit is contained in:
yanran200730
2023-08-08 11:08:09 +08:00
parent aea8585182
commit 3b1de45fbf
4 changed files with 74 additions and 42 deletions

View File

@@ -61,6 +61,9 @@
},
created () {
this.$store.dispatch('getUserInfo').then(e => {
console.log(e)
})
this.getCateList()
this.getList()
},
@@ -89,7 +92,6 @@
},
collection (id, isFavorite) {
console.log(isFavorite)
this.$confirm(isFavorite === '0' ? '确定收藏该文章?' : '确定取消收藏?', '温馨提示', {
confirmButtonText: '确定',
callback: action => {