⚡ 优化代码
This commit is contained in:
parent
b6ea3e685c
commit
b57ef56c19
@ -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 = '后端接口连接异常'
|
||||||
|
|||||||
@ -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')
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
/** 重置密码按钮操作 */
|
/** 重置密码按钮操作 */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user