app.vue
onError(e){
console.error(e)
try{
let txt = e.message
uni.showToast({
title: txt,
})
}catch(e){
console.error(e)
}
},
<template>
<view>
<button @click="clickNext2" type="default" :disabled="btnDisable1" >vue3 bug</button>
<button @click="clickNext2" type="default" :disabled="btnDisable2" >good</button>
</view>
</template>
<script>
export default {
data(){
return {
btnDisable1 : true,
btnDisable2 : false,
}
},
methods: {
clickNext2(){
console.warn('clicked')
},
},
}
</script>