未验证 提交 9c20da3c 编写于 作者: Y yurj26 提交者: GitHub

Merge pull request #4555 from zhijiang3/dev

fix(mp-toutiao): refs invalid in TikTok App 27.2.0
......@@ -13,8 +13,8 @@ export function isPage () {
export function initRefs (vm) {
const mpInstance = vm.$scope
/* eslint-disable no-undef */
const minorVersion = parseInt(tt.getSystemInfoSync().SDKVersion.split('.')[1])
if (minorVersion > 16) {
const [majorVersion = '', minorVersion = ''] = tt.getSystemInfoSync().SDKVersion.split('.')
if (parseInt(majorVersion) > 1 || parseInt(minorVersion) > 16) {
initRefsBase(vm)
} else {
mpInstance.selectAllComponents('.vue-ref', (components) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册