优化代码

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) => { (error) => {
console.log('axios err', error) console.log('axios err', error)
const duration = 3000 var duration = 3000
let { message } = error let { message } = error
if (message == 'Network Error') { if (message == 'Network Error') {
message = '后端接口连接异常' message = '后端接口连接异常'

View File

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

View File

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