|
@@ -15,7 +15,7 @@
|
|
<component :is="val.fileName" :title="val.title" @emitClick="eventVal => handleClick(eventVal)"></component>
|
|
<component :is="val.fileName" :title="val.title" @emitClick="eventVal => handleClick(eventVal)"></component>
|
|
</template>
|
|
</template>
|
|
<template v-else>
|
|
<template v-else>
|
|
- <span class="cursor-pointer">{{ val.title }}</span>
|
|
|
|
|
|
+ <span class="cursor-pointer" @click="handleClick(val)">{{ val.title }}</span>
|
|
</template>
|
|
</template>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -30,6 +30,7 @@
|
|
<script setup>
|
|
<script setup>
|
|
import product from './components/product.vue'
|
|
import product from './components/product.vue'
|
|
import solution from './components/solution.vue'
|
|
import solution from './components/solution.vue'
|
|
|
|
+import Snackbar from '@/plugins/snackbar'
|
|
import { useRouter } from 'vue-router'; const router = useRouter()
|
|
import { useRouter } from 'vue-router'; const router = useRouter()
|
|
defineOptions({name: 'entrances-navBar'})
|
|
defineOptions({name: 'entrances-navBar'})
|
|
const handleLogoClick = () => { router.push({ path: '/'}) }
|
|
const handleLogoClick = () => { router.push({ path: '/'}) }
|
|
@@ -43,7 +44,9 @@ const menuList = [
|
|
{ title: '了解门墩儿', fileName: product },
|
|
{ title: '了解门墩儿', fileName: product },
|
|
]
|
|
]
|
|
const handleClick = (val) => {
|
|
const handleClick = (val) => {
|
|
- if (val.path) window.open(val.path)
|
|
|
|
|
|
+ Snackbar.warning('暂未开发,敬请期待!')
|
|
|
|
+ console.log('handleClick', val)
|
|
|
|
+ // if (val.path) window.open(val.path)
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|