修复bug
This commit is contained in:
@@ -197,8 +197,9 @@
|
||||
}
|
||||
}
|
||||
|
||||
// 车牌号正则:省份简称 + 城市代码字母 + 5位(蓝牌)或6位(新能源绿牌)字母数字
|
||||
const CAR_NUM_REGEX = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤川青藏琼宁][A-Z][A-Z0-9]{5,6}$/
|
||||
// 车牌号正则:省份简称 + 城市代码字母 + 序号
|
||||
// 蓝牌:5位字母数字;新能源绿牌:6位,其中第3位或末位必须是 D/F
|
||||
const CAR_NUM_REGEX = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤川青藏琼宁][A-Z](?:[A-Z0-9]{5}|[DF][A-Z0-9]{5}|[A-Z0-9]{5}[DF])$/
|
||||
|
||||
const saveCar = async () => {
|
||||
if (isSubmitting.value) return
|
||||
@@ -308,14 +309,14 @@
|
||||
icon: 'success'
|
||||
})
|
||||
setTimeout(() => {
|
||||
uni.removeStorageSync("carNum")
|
||||
uni.removeStorageSync("carBrand")
|
||||
uni.removeStorageSync("carModel")
|
||||
uni.removeStorageSync("carColor")
|
||||
uni.removeStorageSync("carImageUrl")
|
||||
uni.removeStorageSync("carBrandId")
|
||||
uni.removeStorageSync("checkType")
|
||||
uni.navigateBack()
|
||||
uni.removeStorageSync("carNum")
|
||||
uni.removeStorageSync("carBrand")
|
||||
uni.removeStorageSync("carModel")
|
||||
uni.removeStorageSync("carColor")
|
||||
uni.removeStorageSync("carImageUrl")
|
||||
uni.removeStorageSync("carBrandId")
|
||||
uni.removeStorageSync("checkType")
|
||||
uni.navigateBack()
|
||||
}, 1500)
|
||||
} else {
|
||||
isSubmitting.value = false
|
||||
|
||||
Reference in New Issue
Block a user