From 4e66ae97b0af03b3596ebd776fbeee0f7393625f Mon Sep 17 00:00:00 2001 From: whycq <123456> Date: 星期三, 11 五月 2022 20:39:02 +0800 Subject: [PATCH] # --- pages/basics/offline.vue | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pages/basics/offline.vue b/pages/basics/offline.vue index 09153e0..a2bd6d2 100644 --- a/pages/basics/offline.vue +++ b/pages/basics/offline.vue @@ -135,6 +135,7 @@ return { barcode: '', barcodeFocus:true, + focus:false, matList:[{barcode:'92992929292'}], matNo:'', mat:null, @@ -150,7 +151,7 @@ msgType: 'success', messageText: '杩欐槸涓�鏉℃垚鍔熸彁绀�', - focus:false + } }, mounted(){ @@ -296,7 +297,10 @@ that.addMatList(that.mat) that.initAnfme() that.matNo = '', - console.log(that.focus) + that.focus = false; + that.$nextTick(function() { + that.focus = true; + }); } else { that.messageToggle('warn') that.messageText = '璇烽噸鏂版壂鐮� \ 杈撳叆' -- Gitblit v1.9.1