Simplify code

This commit is contained in:
Pig Fang 2018-09-13 18:53:04 +08:00
parent 43051bad90
commit 972c639730

View File

@ -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;
}