摘要: 1、在 src/router/index.js 里定义新的路由数据 HTML5 history 模式配置 Apache Nginx Nodejs Express 2、在需要跳转的页面添加代码 阅读全文
posted @ 2017-08-03 19:02 L狗哥 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 1、在components 目录下新建Test.vue 文件 2、在Hell.vue里添加代码引用Test.vue 运行结果: 阅读全文
posted @ 2017-08-03 18:02 L狗哥 阅读(535) 评论(0) 推荐(0) 编辑
摘要: 1、需要nodejs 环境支持。 2、安装 cnpm 替换npm镜像为国内镜像 3、全局安装vue 4、新建项目 5、安装依赖并运行 6、打包 7、目录结构 阅读全文
posted @ 2017-08-03 17:48 L狗哥 阅读(171) 评论(0) 推荐(0) 编辑