随笔分类 -  vue-cli

摘要:##本地预览 ① dist文件夹 不允许通过file://的方式直接打开index.html 除非配置了publicPath为一个相对的值也就是路径 ②只能通过跑dist的HTTP服务才能正常进行访问 ③解决本地预览的路由问题serve命令行解决方式:serve -s dist# -s 参数的意思是 阅读全文
posted @ 2022-04-06 17:36 Thantics 阅读(1000) 评论(0) 推荐(0)
摘要:this.$router与this.$route的区别 this.$router 是函数集,this.$route是数据集 动态路由 使用localhost:8080/xxx/:yyy this.$route.params.yyy 可以直接获取到当前页面yyy具体值 导航的注意事项 ① 路由进行pu 阅读全文
posted @ 2022-04-01 11:06 Thantics 阅读(33) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/m0_46156566/article/details/120076332 阅读全文
posted @ 2022-03-30 14:37 Thantics 阅读(39) 评论(0) 推荐(0)
摘要:Vue3-Cli引入 vue-router 时使用 VueRouter.createRouter()时报 Cannot read properties of undefined (reading 'createRouter') ###源代码 import { createApp } from 'vu 阅读全文
posted @ 2022-03-28 16:45 Thantics 阅读(3574) 评论(0) 推荐(0)