修复bug
This commit is contained in:
@@ -63,6 +63,7 @@
|
||||
|
||||
const statusBarHeight = ref(20)
|
||||
const currentStatus = ref('')
|
||||
const isDeleting = ref(false)
|
||||
const id = ref(undefined)
|
||||
const form = ref({
|
||||
plateNo: '',
|
||||
@@ -110,11 +111,13 @@
|
||||
}
|
||||
|
||||
const onDelete = () => {
|
||||
if (isDeleting.value) return
|
||||
uni.showModal({
|
||||
title: "确认删除",
|
||||
content: "确认删除此车辆信息吗?",
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
isDeleting.value = true
|
||||
uni.showLoading({
|
||||
title: '删除中...',
|
||||
mask: true
|
||||
@@ -122,6 +125,7 @@
|
||||
deleteCar({
|
||||
carId: id.value
|
||||
}).then(deleteRes => {
|
||||
isDeleting.value = false
|
||||
uni.hideLoading()
|
||||
if (deleteRes.code === 200) {
|
||||
uni.showToast({
|
||||
@@ -129,7 +133,7 @@
|
||||
icon: 'success'
|
||||
})
|
||||
setTimeout(() => {
|
||||
uni.redirectTo({ url: "/pageSubPack/my/myCarIndex" })
|
||||
uni.navigateBack()
|
||||
}, 1500)
|
||||
} else {
|
||||
uni.showToast({
|
||||
|
||||
Reference in New Issue
Block a user