摘要: vue3.0 **提供两种setup的入口方式,现在的话没有this**1.export default{ setup(){} }2.<script setup>// 建议使用第二种,因为定义更简便// 数据定义和方法使用 两种格式 分割 <template> <div class='content 阅读全文
posted @ 2021-12-02 13:57 去未来等时光 阅读(366) 评论(0) 推荐(0)
摘要: 在使用element中的menu组件时,根据官方文档,可以设置给el-menu设置router属性为:true,给el-menu-item设置index的值为路径,就可以实现点击导航跳转到指定路由。 这样做虽然能实现跳转,但是,若刷新浏览器,则导航会跳转到默认的选中项,而不是我们离开时的导航。 百度 阅读全文
posted @ 2021-11-05 15:17 去未来等时光 阅读(1962) 评论(0) 推荐(0)