代码优化
This commit is contained in:
@@ -175,6 +175,7 @@ export default {
|
||||
duration: 2500
|
||||
})
|
||||
}).catch(err => {
|
||||
data.enabled = !data.enabled
|
||||
console.log(err.response.data.message)
|
||||
})
|
||||
}).catch(() => {
|
||||
|
||||
@@ -191,6 +191,7 @@ export default {
|
||||
duration: 2500
|
||||
})
|
||||
}).catch(err => {
|
||||
data.enabled = !data.enabled
|
||||
console.log(err.response.data.message)
|
||||
})
|
||||
}).catch(() => {
|
||||
|
||||
@@ -255,6 +255,7 @@ export default {
|
||||
duration: 2500
|
||||
})
|
||||
}).catch(err => {
|
||||
data.enabled = !data.enabled
|
||||
console.log(err.response.data.message)
|
||||
})
|
||||
}).catch(() => {
|
||||
|
||||
Reference in New Issue
Block a user