|
|
@@ -660,7 +660,8 @@ export default {
|
|
|
},
|
|
|
loadMyCircles: function() {
|
|
|
var self = this
|
|
|
- getMyCircles({}).then(function(res) {
|
|
|
+ if (!this.currentChildId) return
|
|
|
+ getMyCircles(this.currentChildId, 'child').then(function(res) {
|
|
|
if (res.code === 200 && res.data) {
|
|
|
self.myCircles = Array.isArray(res.data) ? res.data : (res.data.list || [])
|
|
|
}
|
|
|
@@ -668,6 +669,7 @@ export default {
|
|
|
},
|
|
|
loadDiscoverCircles: function() {
|
|
|
var self = this
|
|
|
+ if (!this.currentChildId) return
|
|
|
discoverCircles(this.currentChildId).then(function(res) {
|
|
|
if (res.code === 200 && res.data) {
|
|
|
self.discoverCirclesList = Array.isArray(res.data) ? res.data.slice(0, 3) : []
|