修复bug

This commit is contained in:
zhouyanli
2026-08-03 10:42:17 +08:00
parent 2010c63d70
commit 27b547a82f
11 changed files with 73 additions and 50 deletions

View File

@@ -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">