adong搬砖

导航

2024年2月9日 #

动态路由

摘要: vue2 const fn = require.context('./views', true, /.vue$/) const paths = fn.keys()// 说有views下面.vue结尾文件,路径字符串,数组形式 路由懒加载import参数不能是字符串,可以是模板字符串,半写死 vue3 阅读全文

posted @ 2024-02-09 18:51 adong搬砖 阅读(14) 评论(0) 推荐(0)