|
|
|
@ -91,10 +91,13 @@ const handleFish = async (fishId) => {
|
|
|
|
loading.value = true
|
|
|
|
loading.value = true
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
const res = await handleFishById(fishId)
|
|
|
|
const res = await handleFishById(fishId)
|
|
|
|
if (res) {
|
|
|
|
if (res.success) {
|
|
|
|
ElMessage.success(res + ' 🎉')
|
|
|
|
ElMessage.success(res + ' 🎉')
|
|
|
|
fetchFishList()
|
|
|
|
fetchFishList()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else{
|
|
|
|
|
|
|
|
ElMessage.error(res.message + ' 😢')
|
|
|
|
|
|
|
|
}
|
|
|
|
} catch (err) {
|
|
|
|
} catch (err) {
|
|
|
|
console.log('====================================');
|
|
|
|
console.log('====================================');
|
|
|
|
console.log(err);
|
|
|
|
console.log(err);
|
|
|
|
|