提交 37f46a07 编写于 作者: DCloud_iOS_XHY's avatar DCloud_iOS_XHY

修改条件判断

上级 38b7844e
......@@ -70,13 +70,13 @@ export default {
},
methods: {
validateGeneralAttributes() {
const generalTarget = this.$refs['general-target'] as Element
const generalTarget = this.$refs['general-target'] as UniElement
const generalId = generalTarget.getAttribute('id')
if (generalId != this.generalId) {
this.validateGeneralAttrText = '基础属性 id 验证失败'
return
}
// #ifdef APP-ANDROID
// #ifdef APP
if (!generalTarget.classList.includes('general-class')) {
// #endif
// #ifdef WEB
......
......@@ -24,7 +24,7 @@
</template>
</uni-collapse>
<!-- #ifdef UNI-APP-X && APP -->
<!-- #ifdef UNI-APP-X && APP-ANDROID -->
<uni-upgrade-center-app ref="upgradePopup" @show="upgradePopupShow" @close="upgradePopupClose" />
<!-- #endif -->
</view>
......@@ -34,7 +34,7 @@
</template>
<script lang="uts">
// #ifdef UNI-APP-X && APP
// #ifdef UNI-APP-X && APP-ANDROID
import checkUpdate from '@/uni_modules/uni-upgrade-center-app/utils/check-update'
// #endif
......@@ -290,7 +290,7 @@
url,
})
}
// #ifdef UNI-APP-X && APP
// #ifdef UNI-APP-X && APP-ANDROID
, upgradePopupShow() {
console.log('upgradePopup show');
if (!this.pageHiden) {
......@@ -304,7 +304,7 @@
// #endif
},
onReady() {
// #ifdef UNI-APP-X && APP
// #ifdef UNI-APP-X && APP-ANDROID
checkUpdate(this.$refs['upgradePopup'] as UniUpgradeCenterAppComponentPublicInstance)
// #endif
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册