bug 修复

This commit is contained in:
bb_pan 2025-02-08 17:01:40 +08:00
parent 65a8d947a9
commit 90504db81d
2 changed files with 9 additions and 8 deletions

View File

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

View File

@ -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/, '')