diff --git a/src/platforms/mp-alipay/runtime/wrapper/util.js b/src/platforms/mp-alipay/runtime/wrapper/util.js index 30ea330bc336d6e36b5b5837f6dc6bb12155f09d..0659476397d9c809ae034c7a4fe4b62ed9d41f6f 100644 --- a/src/platforms/mp-alipay/runtime/wrapper/util.js +++ b/src/platforms/mp-alipay/runtime/wrapper/util.js @@ -14,9 +14,10 @@ const customizeRE = /:/g const customize = cached((str) => { return camelize(str.replace(customizeRE, '-')) -}) +}) -export const isComponent2 = my.canIUse('component2') +// 钉钉小程序是 component2 模式 +export const isComponent2 = my.dd || my.canIUse('component2') export const mocks = ['$id']