From 972c63973060c0c75d406c79aef879b619288c85 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Thu, 13 Sep 2018 18:53:04 +0800 Subject: [PATCH] Simplify code --- resources/assets/src/components/admin/Update.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/src/components/admin/Update.vue b/resources/assets/src/components/admin/Update.vue index 68348eb5..90969645 100644 --- a/resources/assets/src/components/admin/Update.vue +++ b/resources/assets/src/components/admin/Update.vue @@ -93,7 +93,7 @@ export default { const { errno, msg } = await this.$http.post('/admin/update/download', { action }); - if (errno && errno !== 0) { + if (errno) { swal({ type: 'error', text: msg }); this.updating = false; }