bug 修复
This commit is contained in:
parent
65a8d947a9
commit
90504db81d
|
|
@ -405,6 +405,12 @@ const onSelectTime = (type, index, goodsI) => {
|
|||
}
|
||||
const onConfirm = () => {
|
||||
if (timeType.value === 1) {
|
||||
// 清除结束日期
|
||||
cartList.value[activeIndex.value].devInfoVoList[goodsIndex.value].rentEndTime = ''
|
||||
// 清除天数
|
||||
cartList.value[activeIndex.value].devInfoVoList[goodsIndex.value].days = 0
|
||||
// 清除费用
|
||||
cartList.value[activeIndex.value].devInfoVoList[goodsIndex.value].costs = 0
|
||||
cartList.value[activeIndex.value].devInfoVoList[goodsIndex.value].rentBeginTime =
|
||||
leaseTime.value.join('-')
|
||||
} else {
|
||||
|
|
@ -415,12 +421,7 @@ const onConfirm = () => {
|
|||
),
|
||||
)
|
||||
) {
|
||||
showFailToast('租赁结束日期不能小于租赁开始日期')
|
||||
return
|
||||
} else if (
|
||||
!cartList.value[activeIndex.value].devInfoVoList[goodsIndex.value].rentBeginTime
|
||||
) {
|
||||
showFailToast('请先选择租赁开始日期')
|
||||
showFailToast('租赁结束日期不能早于租赁开始日期')
|
||||
return
|
||||
} else {
|
||||
cartList.value[activeIndex.value].devInfoVoList[goodsIndex.value].rentEndTime =
|
||||
|
|
|
|||
|
|
@ -33,11 +33,11 @@ export default defineConfig({
|
|||
proxy: {
|
||||
// 在此处编写代理规则
|
||||
'/api': {
|
||||
// target: 'http://36.33.26.201:17788/proxyApi',
|
||||
target: 'http://36.33.26.201:17788/proxyApi',
|
||||
// target: 'http://192.168.2.123:28080',
|
||||
// target: 'http://192.168.2.122:28080',
|
||||
// target: 'http://192.168.0.244:28580', // 测试服务
|
||||
target: 'http://192.168.2.122:28080', // 测试服务
|
||||
// target: 'http://192.168.2.122:28080', // 测试服务
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => {
|
||||
return path.replace(/\/api/, '')
|
||||
|
|
|
|||
Loading…
Reference in New Issue