Skip to content

Comments

refactor(cli): 兼容 taro 2 访问 config 的方法 #6412

Merged
yuche merged 3 commits intonextfrom
refactor/read-config
May 22, 2020
Merged

refactor(cli): 兼容 taro 2 访问 config 的方法 #6412
yuche merged 3 commits intonextfrom
refactor/read-config

Conversation

@yuche
Copy link
Contributor

@yuche yuche commented May 20, 2020

  1. 可以通过 Current.app.config 或者在 App 中使用 this.config 访问 app.config
  2. window.__taroAppConfig 也可以访问

yuche added 2 commits May 20, 2020 15:56
1. 可以通过 Current.app 或者 this.config 访问 app.config
2. window.__taroAppConfig 也可以访问
@yuche yuche merged commit 92d0cc4 into next May 22, 2020
@yuche yuche deleted the refactor/read-config branch May 22, 2020 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants