Commit 45f8e3e2 authored by youjie's avatar youjie

no message

parent 8b3c75dd
......@@ -38,7 +38,7 @@ export default defineComponent({
ContactName:'',
ContactNumber:''
})
search.OrderId = currentRouter.value.params.orderId
search.OrderId = currentRouter.currentRoute.value.params.orderId
provide(DirtionmaryHelper.HOTEL_ORDER_SEARCH,search)
const menu=inject(DirtionmaryHelper.MENU_KEYS) as any
......
......@@ -155,7 +155,7 @@ import useMetaModule from '../../module/meta/metaModule'
import { ApiResult } from 'src/@types/enumHelper'
import HotelService from 'src/api/hotel'
import { DirtionmaryHelper } from 'src/config/dictionary'
import { currentRouter } from 'src/router'
import { currentRouter } from '../../src/router'
import message from 'src/utils/message'
import { defineComponent, inject, provide, reactive, ref, toRefs } from 'vue'
import { useI18n } from 'vue-i18n'
......@@ -212,7 +212,9 @@ export default defineComponent({
{ Name: t('hotel.car.group'), ID: 2 }
]
})
data.orderId = currentRouter.value.params.orderId
if(currentRouter.value.params.orderId){
data.orderId = currentRouter.value.params.orderId
}
if (data.orderId == 0) {
history.back()
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment