Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App 脚本 app.js 配置时 文档里面 这样配置编译不通过,把globalData放到config 里面就不报错 #20

Closed
6 tasks
422656004 opened this issue Dec 18, 2018 · 4 comments
Labels
bug Something isn't working

Comments

@422656004
Copy link

config: {
pages: [
'pages/home/index'
]
},

globalData: {}, // 全局应用数据定义,同原生小程序

问题类型

  • 如何实现某功能
  • 报 BUG
  • 某功能改进建议
  • 新功能建议
  • 文档问题
  • 其他/以上都不是

问题详情

期望效果

实际情况

复现步骤 和 问题示例

问题环境

@wuhy
Copy link
Collaborator

wuhy commented Dec 18, 2018

可以截图看下编译命令行输出的错误信息吗包括你编辑器实际代码截图?感觉是不是你的代码的语法有问题

@422656004
Copy link
Author

422656004 commented Dec 18, 2018

不好意思
问题是 globalData 这个全局对象,不能包含有config 这个属性
globalData: {
interface: {
}
}
编译不报错(百度智能小程序)

@wuhy
Copy link
Collaborator

wuhy commented Dec 18, 2018

不好意思
问题是 globalData 这个全局对象,不能包含有config 这个属性
globalData: {
interface: {
}
}
编译不报错(百度智能小程序)

好的,我这边看下

@wuhy wuhy added the bug Something isn't working label Dec 18, 2018
wuhy added a commit that referenced this issue Dec 18, 2018
@wuhy
Copy link
Collaborator

wuhy commented Dec 19, 2018

@422656004 问题已修复,可以升级到 [email protected] 再看看

@wuhy wuhy closed this as completed Dec 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants