Skip to content

amiron0188/vue-demo_1

Repository files navigation

学习Vue.js的简易demo

前言

一直想学Vue,所以就放在了暑假学习的计划中,第一阶段的学习终于在月末有了成果,这些代码是Vue教学视频 里面的demo,部分代码不一样。

项目结构

.src
|-api  //axios获取数据
| +-- index.js
|-assets
|-components  //组件
| +-- MHeader.vue
| +-- Swiper.vue //轮播
| +-- Tabbar.vue
|-mock  //json-server 数据
| +-- data.json
|-page //页面
| +--Add.vue
| +--Cart.vue
| +--Detail.vue
| +--Home.vue
| +--List.vue
|-router //路由
|-store //Vuex
| +--getters.js
| +--index.js
| +--mutations.js
| +--mutations-type.js
|-main.js
|-App.vue

用到的主要模块

运行程序

npm install
json-server -w src\mock\data.json
npm run dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published