vue
账号
密码
2. 紧抓数据驱动原理 用一个computed计算属性判断空值返回Boolean表示是否可以点击.
computed: {
isLogin() {
return !!this.user && !!this.password
}
}

vue
账号
密码
2. 紧抓数据驱动原理 用一个computed计算属性判断空值返回Boolean表示是否可以点击.
computed: {
isLogin() {
return !!this.user && !!this.password
}
}