bug
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-11 button-default" @click="cancle">{{$t('button.cancel')}}</button>
|
||||
<button class="zd-col-11 button-primary" :class="{'button-info': index === ''}" :disabled="disabled" @tap="_updateTask('1')">{{$t('take-and-place')}}</button>
|
||||
<button class="zd-col-11 button-primary" :disabled="disabled" @tap="_updateTask('1')">{{$t('take-and-place')}}</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -47,10 +47,6 @@
|
||||
},
|
||||
async _updateTask (type) {
|
||||
this.disabled = true
|
||||
if (!this.index) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await updateTask(this.code, type)
|
||||
this.cancle()
|
||||
|
||||
Reference in New Issue
Block a user