摘要: 1、安装插件 npm install -g @vue/cli-service-global 2、终端中运行 vue serve 或者运行 vue build 会打包一个dist文件夹,通过anywhere可以在本地启动项目 在任意文件夹下新建的单文件组件都可以通过vue serve的方式启动: 报错 阅读全文
posted @ 2021-06-08 23:42 吴小明- 阅读(607) 评论(0) 推荐(0) 编辑
摘要: 给每个li添加test3类名: <ul ref="ulRef"> <li class="test1 test2">项目一</li> <li class="test1 test2">项目二</li> <li class="test1 test2">项目三</li> </ul> 1、utils/util 阅读全文
posted @ 2021-06-08 23:10 吴小明- 阅读(674) 评论(0) 推荐(0) 编辑
摘要: 一、分类:全局守卫、路由独享守卫、组件内路由守卫 全局守卫: router.beforeEach((to, form, next) => { console.log('全局前置守卫 beforeEach') next() }) router.beforeResolve((to, form, next 阅读全文
posted @ 2021-06-08 16:51 吴小明- 阅读(5321) 评论(0) 推荐(0) 编辑