修复bug
This commit is contained in:
@@ -76,6 +76,11 @@
|
||||
} from '/pageSubPack/api/useImageUpload.js'
|
||||
|
||||
const statusBarHeight = ref(20)
|
||||
|
||||
const goBack = () => {
|
||||
uni.navigateBack()
|
||||
}
|
||||
|
||||
const id = ref(undefined)
|
||||
const type = ref('')
|
||||
const formData = ref({
|
||||
@@ -253,7 +258,14 @@
|
||||
icon: 'success'
|
||||
})
|
||||
setTimeout(() => {
|
||||
goBack()
|
||||
uni.removeStorageSync("carNum")
|
||||
uni.removeStorageSync("carBrand")
|
||||
uni.removeStorageSync("carModel")
|
||||
uni.removeStorageSync("carColor")
|
||||
uni.removeStorageSync("carImageUrl")
|
||||
uni.removeStorageSync("carBrandId")
|
||||
uni.removeStorageSync("checkType")
|
||||
uni.redirectTo({ url: "/pageSubPack/my/myCarIndex" })
|
||||
}, 1500)
|
||||
} else {
|
||||
uni.showToast({
|
||||
@@ -271,7 +283,14 @@
|
||||
icon: 'success'
|
||||
})
|
||||
setTimeout(() => {
|
||||
goBack()
|
||||
uni.removeStorageSync("carNum")
|
||||
uni.removeStorageSync("carBrand")
|
||||
uni.removeStorageSync("carModel")
|
||||
uni.removeStorageSync("carColor")
|
||||
uni.removeStorageSync("carImageUrl")
|
||||
uni.removeStorageSync("carBrandId")
|
||||
uni.removeStorageSync("checkType")
|
||||
uni.redirectTo({ url: "/pageSubPack/my/myCarIndex" })
|
||||
}, 1500)
|
||||
} else {
|
||||
uni.showToast({
|
||||
@@ -293,16 +312,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
const goBack = () => {
|
||||
uni.removeStorageSync("carNum")
|
||||
uni.removeStorageSync("carBrand")
|
||||
uni.removeStorageSync("carModel")
|
||||
uni.removeStorageSync("carColor")
|
||||
uni.removeStorageSync("carImageUrl")
|
||||
uni.removeStorageSync("carBrandId")
|
||||
uni.removeStorageSync("checkType")
|
||||
uni.navigateBack()
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
|
||||
Reference in New Issue
Block a user