⚡ 优化代码
This commit is contained in:
parent
b6ea3e685c
commit
b57ef56c19
@ -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 = '后端接口连接异常'
|
||||
|
||||
@ -201,7 +201,7 @@ function reset() {
|
||||
leader: undefined,
|
||||
phone: undefined,
|
||||
email: undefined,
|
||||
status: '0'
|
||||
status: 0
|
||||
}
|
||||
proxy.resetForm('formRef')
|
||||
}
|
||||
|
||||
@ -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
|
||||
})
|
||||
}
|
||||
/** 重置密码按钮操作 */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user