Code Monkey home page Code Monkey logo

vuex-douyu's Introduction

Vuex版的斗鱼 (vuex-douyu)

使用技术栈: webpack + vuejs+ vuex + axios + vue-router

更改使用本地Proxy代理,解决跨域问题

proxyTable: {	
  '/api': {	
    target: 'http://open.douyucdn.cn/api/RoomApi',	
    changeOrigin: true,	
    pathRewrite: {	
      '^/api': ''	
    }	
  },	
  '/category': {	
    target: 'https://m.douyu.com/category',	
    changeOrigin: true,	
    pathRewrite: {	
      '^/category': ''	
    }	
  }	
}	

动图演示

demo-1 demo-2

本地运行

# install dependencies
npm install or yarn install
# serve with hot reload at localhost:8080
npm run dev or yarn run dev
# build for production with minification
npm run build

vuex-douyu's People

Contributors

axhello avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vuex-douyu's Issues

创建API接口之后会出现/n

1.创建一个api,例如{"code":1,"msg":2}
2.在生成文件.json文件会发现这个文件里面的detail字段,变成这种格式"{"a":1,"b":2}"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.