This commit is contained in:
parent
144d1d4421
commit
84a3419032
|
|
@ -34,7 +34,6 @@
|
|||
<view class="login-btn" @tap="onHandleLogin">登录</view>
|
||||
</uni-forms>
|
||||
</view>
|
||||
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
|
|
@ -103,7 +102,26 @@ onMounted(async () => {
|
|||
} catch (error) {
|
||||
console.log(error)
|
||||
uni.hideLoading()
|
||||
showToast('登录失败')
|
||||
uni.showToast({ title: '登录失败!', icon: 'none' })
|
||||
}
|
||||
} else {
|
||||
if (!isDev) {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '请从i皖送APP登录!',
|
||||
showCancel: false,
|
||||
confirmText: '退出',
|
||||
success: () => {
|
||||
// 关闭APP
|
||||
if (plus) {
|
||||
plus.runtime.quit()
|
||||
} else {
|
||||
document.addEventListener('plusready', function () {
|
||||
plus.runtime.quit()
|
||||
})
|
||||
}
|
||||
},
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue