提交 b24abfed 编写于 作者: Q qiang

fix: global tt

上级 2ba8c12a
......@@ -8,8 +8,9 @@ export function isPage () {
return this.__nodeid__ === 0 || this.__nodeId__ === 0
}
export function initRefs (vm) {
export function initRefs (vm) {
const mpInstance = vm.$scope
/* global tt */
const minorVersion = parseInt(tt.getSystemInfoSync().SDKVersion.split('.')[1])
if (minorVersion > 16) {
Object.defineProperty(vm, '$refs', {
......@@ -100,4 +101,4 @@ export function handleLink ({
vm._isMounted = true
vm.__call_hook('mounted')
vm.__call_hook('onReady')
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册