8000 GitHub - foxSnower/FoxSnower: 这是一个关于Vue的项目,配置好了vue-router,vuex,axios请求数据,过滤分离,方法分离的框架,而且还可以本地模拟json数据方便开发
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

这是一个关于Vue的项目,配置好了vue-router,vuex,axios请求数据,过滤分离,方法分离的框架,而且还可以本地模拟json数据方便开发

Notifications You must be signed in to change notification settings

foxSnower/FoxSnower

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

foxsnower

A Vue.js project

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

For a detailed explanation on how things work, check out the guide and docs for vue-loader.

by Fox Snower -----2017/11/22

自从vue移除dev-server.js 后,就没有现成的本地服务了,为了能够本地模拟数据,方便开发, 新建了server文件夹,专门提供本地服务,若需要调取本地json数据,需要满足以下两个条件

* 打开 >src>api>api.js    

`const IsLoacalData = true; //本地数据`


* 启动本地服务 ,在server文件夹下 打开命令窗口

执行`node index.js`

目录详细说明

  -config             配置跨域请求
  -server(本地服务)   专门提供本地服务,调取本地json数据
    -local.json       本地数据
  -src(主要编写)      
    -api 							后台接口
    -components 			小组件
    -components_pages 页面组件
    -pages 						页面
    -router           路由
    -styles           样式
      -font_icon      字体图标
      -icon.less      图片图标
      -index.less     样式集合
      -reset.less     重置样式
      -transition.less过渡动画样式
      -var.less       变量样式
    -utils            公共工具
      -filter.js      公共过滤方法
    -vuex             状态管理

About

这是一个关于Vue的项目,配置好了vue-router,vuex,axios请求数据,过滤分离,方法分离的框架,而且还可以本地模拟json数据方便开发

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0