提交 ff513989 编写于 作者: A Anne_LXM

修复button type绑定空值时闪退

上级 f6eeca7f
......@@ -5,7 +5,7 @@
<uni-id-pages-x-input class="my-input" title="密码" v-model="password" :password="true" ref="password"></uni-id-pages-x-input>
<!-- 同意隐私政策协议 -->
<uni-id-pages-x-agreements class="agreements-box" ref="agreements" scope="login"/>
<button class="uni-btn" :type="password.length > 0 && username.length >0 ? 'primary' : '' " @click="loginByPwd">登录</button>
<button class="uni-btn" :type="password.length > 0 && username.length >0 ? 'primary' : 'default' " @click="loginByPwd">登录</button>
</view>
<view class="link-group">
......
......@@ -48,7 +48,7 @@
},
data() {
return {
loginType: "username" as string,
loginType: "username",
logo: "/static/logo.png"
}
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册