提交 13cba337 编写于 作者: J Johannes Rieken

support boolean, string, and number types for `config.<setting>` context keys, #30845

上级 0874a61a
......@@ -110,6 +110,8 @@ class ConfigAwareContextValuesContainer extends Context {
let value = obj[key];
switch (typeof value) {
case 'boolean':
case 'string':
case 'number':
const configKey = keys.join('.');
const oldValue = this._value[configKey];
this._value[configKey] = value;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册