{"action":"closed","issue":{"url":"https://api.github.com/repos/Tencent/wepy/issues/1208","repository_url":"https://api.github.com/repos/Tencent/wepy","labels_url":"https://api.github.com/repos/Tencent/wepy/issues/1208/labels{/name}","comments_url":"https://api.github.com/repos/Tencent/wepy/issues/1208/comments","events_url":"https://api.github.com/repos/Tencent/wepy/issues/1208/events","html_url":"https://github.com/Tencent/wepy/issues/1208","id":313584709,"number":1208,"title":"computed 属性无效","user":{"login":"grapewheel","id":490426,"avatar_url":"https://avatars2.githubusercontent.com/u/490426?v=4","gravatar_id":"","url":"https://api.github.com/users/grapewheel","html_url":"https://github.com/grapewheel","followers_url":"https://api.github.com/users/grapewheel/followers","following_url":"https://api.github.com/users/grapewheel/following{/other_user}","gists_url":"https://api.github.com/users/grapewheel/gists{/gist_id}","starred_url":"https://api.github.com/users/grapewheel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grapewheel/subscriptions","organizations_url":"https://api.github.com/users/grapewheel/orgs","repos_url":"https://api.github.com/users/grapewheel/repos","events_url":"https://api.github.com/users/grapewheel/events{/privacy}","received_events_url":"https://api.github.com/users/grapewheel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-12T05:44:16Z","updated_at":"2018-04-12T05:52:05Z","closed_at":"2018-04-12T05:52:05Z","author_association":"NONE","body":"## Description\r\n\r\n页面中使用computed属性，用console看属性值并没有触发更新，完全无效\r\n\r\n```js\r\ncomputed = {\r\n      freePorts () { // 用了this.$apply()不触发\r\n        let ports = 0\r\n\r\n        for(charge of this.selectedPile.charges) {\r\n          ports += countFreePorts(charge.ports)\r\n        }\r\n\r\n        console.log('freePorts change: ', ports)\r\n        return ports\r\n      }\r\n    }\r\n```\r\n\r\n## Environment\r\n\r\n  * Platform: deepin linux\r\n  * Wechat SDK version: 1.6.6\r\n  * wepy-cli version: 1.7.2\r\n  * wepy version: 1.7.1\r\n"}}
{"actor":{"display_login":"grapewheel"}}