loading未关闭
This commit is contained in:
parent
922eb8bdbe
commit
09d2a03b9e
@ -184,7 +184,6 @@ const queryParams = reactive({
|
||||
|
||||
const activeName = ref('-1')
|
||||
const handleClick = (tab, event) => {
|
||||
loading.value = true // 切换标签时显示loading
|
||||
queryParams.deviceType = tab.props.name != -1 ? tab.props.name : undefined
|
||||
getCarList()
|
||||
}
|
||||
@ -278,6 +277,9 @@ const clockDevice = (item) => {
|
||||
})
|
||||
})
|
||||
.catch(() => {})
|
||||
.finally(() => {
|
||||
loading.value = false // 操作后关闭loading
|
||||
})
|
||||
}
|
||||
//新建编辑车辆
|
||||
const openForm = (type, id) => {
|
||||
@ -298,6 +300,9 @@ const deleteCar = (id) => {
|
||||
})
|
||||
})
|
||||
.catch(() => {})
|
||||
.finally(() => {
|
||||
loading.value = false // 操作后关闭loading
|
||||
})
|
||||
}
|
||||
|
||||
//前往地图定位
|
||||
|
Loading…
Reference in New Issue
Block a user