修复bug
This commit is contained in:
@@ -93,6 +93,11 @@
|
||||
} from '@/pageSubPack/api/apiSub.js'
|
||||
|
||||
const statusBarHeight = ref(20)
|
||||
|
||||
const goBack = () => {
|
||||
uni.navigateBack()
|
||||
}
|
||||
|
||||
const id = ref(undefined)
|
||||
const type = ref('')
|
||||
const formData = ref({
|
||||
@@ -200,7 +205,19 @@
|
||||
icon: 'success'
|
||||
})
|
||||
setTimeout(() => {
|
||||
goBack()
|
||||
uni.removeStorageSync("communityId")
|
||||
uni.removeStorageSync("communityName")
|
||||
uni.removeStorageSync("checkType")
|
||||
uni.removeStorageSync("parkingLotId")
|
||||
uni.removeStorageSync("parkingLotName")
|
||||
uni.removeStorageSync("parkingSpaceId")
|
||||
uni.removeStorageSync("parkingStatus")
|
||||
uni.removeStorageSync("parkingSpaceName")
|
||||
uni.removeStorageSync("bindCarId")
|
||||
uni.removeStorageSync("bindCarName")
|
||||
uni.removeStorageSync("ownerId")
|
||||
uni.removeStorageSync("ownerName")
|
||||
uni.redirectTo({ url: "/pageSubPack/my/myParkingSpaceIndex" })
|
||||
}, 1500)
|
||||
} else {
|
||||
uni.showToast({
|
||||
@@ -323,21 +340,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
const goBack = () => {
|
||||
uni.removeStorageSync("communityId")
|
||||
uni.removeStorageSync("communityName")
|
||||
uni.removeStorageSync("checkType")
|
||||
uni.removeStorageSync("parkingLotId")
|
||||
uni.removeStorageSync("parkingLotName")
|
||||
uni.removeStorageSync("parkingSpaceId")
|
||||
uni.removeStorageSync("parkingStatus")
|
||||
uni.removeStorageSync("parkingSpaceName")
|
||||
uni.removeStorageSync("bindCarId")
|
||||
uni.removeStorageSync("bindCarName")
|
||||
uni.removeStorageSync("ownerId")
|
||||
uni.removeStorageSync("ownerName")
|
||||
uni.navigateBack()
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
|
||||
Reference in New Issue
Block a user