2022年7月19日

VUE3 createWebHistory和createWebHashHistory

摘要: createWebHistory --路由模式路径不带#号(生产环境下不能直接访问项目,需要nginx转发) createWebHashHistory 路由模式路径带#号 //vue3设置不带#号 const router = createRouter({ history: createWebHis 阅读全文

posted @ 2022-07-19 13:57 祖国小黄花 阅读(9660) 评论(0) 推荐(0)

vue2路由*已弃用 Catch all routes ("*") must now be defined using a param with a custom regexp

摘要: { //除已经定义好了的路由,其它路由都跳到/404路由 //vue2使用 * 所有路由,vue3使用 /:pathMatch(.*) path:"/:pathMatch(.*)", redirect:'/404' } 阅读全文

posted @ 2022-07-19 13:36 祖国小黄花 阅读(788) 评论(0) 推荐(1)

vue3报错:[@vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.

摘要: /* /deep/ 当优先级!important没有效果使用/deep/ */ /* /deep/已弃用 使用:deep() */ :deep(.el-checkbox__label) { padding-left: 0px !important; } 阅读全文

posted @ 2022-07-19 12:30 祖国小黄花 阅读(4649) 评论(0) 推荐(0)

导航