diff --git a/src/core/service/plugins/index.js b/src/core/service/plugins/index.js index b961a5587fa1107a07323cb6c995bc8a3dd50e88..f6c2ceea89acc0d03adcac4948e0f51dcefad871 100644 --- a/src/core/service/plugins/index.js +++ b/src/core/service/plugins/index.js @@ -152,6 +152,14 @@ export default { } }) + Vue.prototype.createSelectorQuery = function createSelectorQuery () { + return uni.createSelectorQuery().in(this) + } + + Vue.prototype.createIntersectionObserver = function createIntersectionObserver (args) { + return uni.createIntersectionObserver(this, args) + } + Vue.use(VueRouter) }