提交 ffb996f6 编写于 作者: D DCloud_LXH

chore: component upgrade-center 条件编译

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