|
@@ -67,13 +67,13 @@ export default defineComponent({
|
|
|
handleOpen()
|
|
|
}
|
|
|
const handleOpen = () => {
|
|
|
- console.log('🚀 ~ route', route)
|
|
|
- data.childPath = route?.path?.replaceAll('/', '') || 'accompany'
|
|
|
+ console.log('🚀 ~ route', route, route.path)
|
|
|
+ data.childPath = route?.path?.replaceAll?.('/', '') || 'accompany'
|
|
|
}
|
|
|
watch(
|
|
|
() => route.path,
|
|
|
() => {
|
|
|
- data.childPath = route?.path?.replaceAll('/', '') || 'accompany'
|
|
|
+ data.childPath = route?.path?.replaceAll?.('/', '') || 'accompany'
|
|
|
}
|
|
|
)
|
|
|
onMounted(() => {
|