{"action":"created","issue":{"url":"https://api.github.com/repos/Meituan-Dianping/mpvue/issues/216","repository_url":"https://api.github.com/repos/Meituan-Dianping/mpvue","labels_url":"https://api.github.com/repos/Meituan-Dianping/mpvue/issues/216/labels{/name}","comments_url":"https://api.github.com/repos/Meituan-Dianping/mpvue/issues/216/comments","events_url":"https://api.github.com/repos/Meituan-Dianping/mpvue/issues/216/events","html_url":"https://github.com/Meituan-Dianping/mpvue/issues/216","id":310394479,"node_id":"MDU6SXNzdWUzMTAzOTQ0Nzk=","number":216,"title":"如何配置单个页面的下拉刷新","user":{"login":"SuperLiuYinXin","id":25244009,"node_id":"MDQ6VXNlcjI1MjQ0MDA5","avatar_url":"https://avatars3.githubusercontent.com/u/25244009?v=4","gravatar_id":"","url":"https://api.github.com/users/SuperLiuYinXin","html_url":"https://github.com/SuperLiuYinXin","followers_url":"https://api.github.com/users/SuperLiuYinXin/followers","following_url":"https://api.github.com/users/SuperLiuYinXin/following{/other_user}","gists_url":"https://api.github.com/users/SuperLiuYinXin/gists{/gist_id}","starred_url":"https://api.github.com/users/SuperLiuYinXin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SuperLiuYinXin/subscriptions","organizations_url":"https://api.github.com/users/SuperLiuYinXin/orgs","repos_url":"https://api.github.com/users/SuperLiuYinXin/repos","events_url":"https://api.github.com/users/SuperLiuYinXin/events{/privacy}","received_events_url":"https://api.github.com/users/SuperLiuYinXin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-04-02T04:51:22Z","updated_at":"2018-08-27T15:14:06Z","closed_at":"2018-04-02T06:00:06Z","author_association":"NONE","body":"# 如何配置单个页面的下拉刷新\r\n我在使用的时候遇到一个问题，就是需要设置一个页面单独的下拉刷新，如果在全局的main.js使用的话所有页面都会有下拉刷新，这并不是我需要的。而且小程序支持单个页面开启下拉刷新。 \r\n但是如果在每个pages目录下面的main.js配置的话又不会生效。（可能是我的配置不对）\r\n\r\n\r\n在单个页面的main.js 中配置：\r\n```javascript\r\nimport Vue from 'vue'\r\nimport App from './index'\r\n\r\nconst app = new Vue(App)\r\napp.$mount()\r\n\r\n\r\n// 这样并不生效\r\nexport default {\r\n  config: {\r\n    window: {\r\n      navigationBarBackgroundColor: '#fff',\r\n      navigationBarTextStyle: 'black',\r\n      navigationBarTitleText: '...',\r\n      navigationStyle: 'default',\r\n      backgroundColor: '#fff',\r\n      backgroundColorTop: '#fff',\r\n      enablePullDownRefresh: true\r\n    }\r\n  }\r\n}\r\n````\r\n最后我的解决方法是在生成的 `dist` 目录下面找到那个页面。手动加上  `页面名.json` 之后才可以的\r\n```json\r\n{\r\n    \"enablePullDownRefresh\": true\r\n}\r\n```\r\n\r\n## 请问有什么好的解决方法么？\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Meituan-Dianping/mpvue/issues/comments/416260868","html_url":"https://github.com/Meituan-Dianping/mpvue/issues/216#issuecomment-416260868","issue_url":"https://api.github.com/repos/Meituan-Dianping/mpvue/issues/216","id":416260868,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjI2MDg2OA==","user":{"login":"yuzexia","id":18087472,"node_id":"MDQ6VXNlcjE4MDg3NDcy","avatar_url":"https://avatars0.githubusercontent.com/u/18087472?v=4","gravatar_id":"","url":"https://api.github.com/users/yuzexia","html_url":"https://github.com/yuzexia","followers_url":"https://api.github.com/users/yuzexia/followers","following_url":"https://api.github.com/users/yuzexia/following{/other_user}","gists_url":"https://api.github.com/users/yuzexia/gists{/gist_id}","starred_url":"https://api.github.com/users/yuzexia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuzexia/subscriptions","organizations_url":"https://api.github.com/users/yuzexia/orgs","repos_url":"https://api.github.com/users/yuzexia/repos","events_url":"https://api.github.com/users/yuzexia/events{/privacy}","received_events_url":"https://api.github.com/users/yuzexia/received_events","type":"User","site_admin":false},"created_at":"2018-08-27T15:14:06Z","updated_at":"2018-08-27T15:14:06Z","author_association":"NONE","body":"为啥我的在`dist`目录项有`page.json`，也不生效,\r\n使用export default {} 进行设置也不生效，\r\nmpvue-loader: 1.1.2"}}
{"actor":{"display_login":"yuzexia"}}