feat(hand-factory): 添加live数据获取接口并更新多个组件
refactor(klp-header): 更新产线列表显示名称 fix(login): 修正验证码启用条件判断 style(l3): 注释掉用户欢迎语区块 refactor(klp-shutdown-statistic): 为switch case添加break语句
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
<view class="input-item flex align-center" style="width: 60%;margin: 0px;" v-if="captchaEnabled">
|
||||
<view class="iconfont icon-code icon"></view>
|
||||
<input v-model="loginForm.code" type="number" class="input" placeholder="请输入验证码" maxlength="4" />
|
||||
<view class="login-code">
|
||||
<view class="login-code" >
|
||||
<image :src="codeUrl" @click="getCode" class="login-code-img"></image>
|
||||
</view>
|
||||
</view>
|
||||
@@ -86,7 +86,7 @@
|
||||
// 获取图形验证码
|
||||
getCode() {
|
||||
getCodeImg().then(res => {
|
||||
this.captchaEnabled = res.captchaEnabled === undefined ? true : res.captchaEnabled
|
||||
this.captchaEnabled = res.data.captchaEnabled === undefined ? true : res.data.captchaEnabled
|
||||
console.log(res, '验证码结果')
|
||||
if (this.captchaEnabled) {
|
||||
this.codeUrl = 'data:image/gif;base64,' + res.data.img
|
||||
|
||||
Reference in New Issue
Block a user