优化代码

This commit is contained in:
不做码农 2023-08-01 12:09:39 +08:00
parent b6ea3e685c
commit b57ef56c19
3 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ service.interceptors.response.use(
},
(error) => {
console.log('axios err', error)
const duration = 3000
var duration = 3000
let { message } = error
if (message == 'Network Error') {
message = '后端接口连接异常'

View File

@ -201,7 +201,7 @@ function reset() {
leader: undefined,
phone: undefined,
email: undefined,
status: '0'
status: 0
}
proxy.resetForm('formRef')
}

View File

@ -475,7 +475,7 @@ function handleStatusChange(row) {
proxy.$modal.msgSuccess(text + '成功')
})
.catch(function () {
row.status = row.status === '0' ? '1' : '0'
row.status = row.status == 1 ? 0 : 1
})
}
/** 重置密码按钮操作 */