摘要:
第一种使用 computed 和 watch 混合模式 computed: { isFollow() { return this.$store.state.userId } }, watch: { isFollow(newVal, oldVal) { console.log(newVal) } }, 阅读全文
摘要:
uniapp升级到Vue3自定义封装的js文件导出方式与Vue2的格式不一样 封装js的 export 导出和 在其他页面使用import引入的方式导致的报错 Vue2 /** * 消息框,错误框,确认框,等待框等封装 */ import base from '@/common/js-base.js 阅读全文