提交 cbe23f9f 编写于 作者: D DCloud_LXH

fix(web): 运行到 web 去除升级中心

上级 5d9b130e
......@@ -24,7 +24,7 @@
</template>
</uni-collapse>
<!-- #ifdef UNI-APP-X -->
<!-- #ifdef UNI-APP-X && APP -->
<uni-upgrade-center-app ref="upgradePopup" @show="upgradePopupShow" @close="upgradePopupClose" />
<!-- #endif -->
</view>
......@@ -34,7 +34,7 @@
</template>
<script lang="uts">
// #ifdef UNI-APP-X
// #ifdef UNI-APP-X && APP
import checkUpdate from '@/uni_modules/uni-upgrade-center-app/utils/check-update'
// #endif
......@@ -295,7 +295,7 @@
url,
})
}
// #ifdef UNI-APP-X
// #ifdef UNI-APP-X && APP
, upgradePopupShow() {
console.log('upgradePopup show');
if (!this.pageHiden) {
......@@ -309,7 +309,7 @@
// #endif
},
onReady() {
// #ifdef UNI-APP-X
// #ifdef UNI-APP-X && APP
checkUpdate(this.$refs['upgradePopup'] as UniUpgradeCenterAppComponentPublicInstance)
// #endif
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册