当前位置: 首页> 汽车> 报价 > 网页设计按钮代码模板_企业网站的宣传功能体现在()_chatgpt 网站_优秀的营销案例

网页设计按钮代码模板_企业网站的宣传功能体现在()_chatgpt 网站_优秀的营销案例

时间:2025/9/8 21:21:19来源:https://blog.csdn.net/qq_46738283/article/details/145588882 浏览次数: 2次
网页设计按钮代码模板_企业网站的宣传功能体现在()_chatgpt 网站_优秀的营销案例
<van-tabbar v-model="active" @change="onChange"><van-tabbar-item icon="home-o">1</van-tabbar-item><van-tabbar-item icon="column">2</van-tabbar-item><van-tabbar-item icon="chat">3</van-tabbar-item><van-tabbar-item icon="manager">4</van-tabbar-item></van-tabbar>
import { ref, onMounted } from "vue";
import { useRouter } from "vue-router";const router = useRouter();let active = ref(0);
//获取当前路由使得刷新页面后,导航位置不变
onMounted(() => {
console.log("router.currentRoute",router.currentRoute);active.value =router.currentRoute.value.path == "/userRecruit"? 0: router.currentRoute.value.path == "/jobFair"? 1: router.currentRoute.value.path == "/messageview"? 2: 3;
});function onChange(index) {if (index == 0) {router.replace("/");} else if (index == 1) {router.replace("/");} else if (index == 2) {router.replace("/");} else if (index == 3) {router.replace("/");}
}
关键字:网页设计按钮代码模板_企业网站的宣传功能体现在()_chatgpt 网站_优秀的营销案例

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: