封装函数
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user