{"action":"created","issue":{"url":"https://api.github.com/repos/Meituan-Dianping/mpvue/issues/445","repository_url":"https://api.github.com/repos/Meituan-Dianping/mpvue","labels_url":"https://api.github.com/repos/Meituan-Dianping/mpvue/issues/445/labels{/name}","comments_url":"https://api.github.com/repos/Meituan-Dianping/mpvue/issues/445/comments","events_url":"https://api.github.com/repos/Meituan-Dianping/mpvue/issues/445/events","html_url":"https://github.com/Meituan-Dianping/mpvue/issues/445","id":321798074,"number":445,"title":"如何在pages中的main.js使用变量?","user":{"login":"kaykie","id":26200899,"avatar_url":"https://avatars3.githubusercontent.com/u/26200899?v=4","gravatar_id":"","url":"https://api.github.com/users/kaykie","html_url":"https://github.com/kaykie","followers_url":"https://api.github.com/users/kaykie/followers","following_url":"https://api.github.com/users/kaykie/following{/other_user}","gists_url":"https://api.github.com/users/kaykie/gists{/gist_id}","starred_url":"https://api.github.com/users/kaykie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaykie/subscriptions","organizations_url":"https://api.github.com/users/kaykie/orgs","repos_url":"https://api.github.com/users/kaykie/repos","events_url":"https://api.github.com/users/kaykie/events{/privacy}","received_events_url":"https://api.github.com/users/kaykie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-05-10T03:33:23Z","updated_at":"2018-05-10T04:03:15Z","closed_at":null,"author_association":"NONE","body":"# [问题简单描述]\r\n\r\n**问题复现步骤:**\r\n\r\nimport Vue from 'vue'\r\nimport App from './menuDetail.vue'\r\nimport store from '../../models/store'\r\n\r\nconst app = new Vue(App);\r\napp.$mount();\r\n\r\nexport default {\r\n  config: {\r\n    navigationBarTitleText: store.state.menu[0].title\r\n  }\r\n}\r\n以上是一个page页面main.js的代码,目前是报错\r\n\r\n**期望的表现:**\r\n不报错,可以在使用变量\r\n\r\n\r\n**观察到的表现:**\r\n\r\n如何在config使用变量,报的错是:store is not defined,这里如何引入变量呢?"},"comment":{"url":"https://api.github.com/repos/Meituan-Dianping/mpvue/issues/comments/387945615","html_url":"https://github.com/Meituan-Dianping/mpvue/issues/445#issuecomment-387945615","issue_url":"https://api.github.com/repos/Meituan-Dianping/mpvue/issues/445","id":387945615,"user":{"login":"F-loat","id":16759376,"avatar_url":"https://avatars0.githubusercontent.com/u/16759376?v=4","gravatar_id":"","url":"https://api.github.com/users/F-loat","html_url":"https://github.com/F-loat","followers_url":"https://api.github.com/users/F-loat/followers","following_url":"https://api.github.com/users/F-loat/following{/other_user}","gists_url":"https://api.github.com/users/F-loat/gists{/gist_id}","starred_url":"https://api.github.com/users/F-loat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/F-loat/subscriptions","organizations_url":"https://api.github.com/users/F-loat/orgs","repos_url":"https://api.github.com/users/F-loat/repos","events_url":"https://api.github.com/users/F-loat/events{/privacy}","received_events_url":"https://api.github.com/users/F-loat/received_events","type":"User","site_admin":false},"created_at":"2018-05-10T04:03:15Z","updated_at":"2018-05-10T04:03:15Z","author_association":"CONTRIBUTOR","body":"emmm 我试下，配置文件可能确实不支持变量。。"}}
{"actor":{"display_login":"F-loat"}}