Skip to content

Setftzoesto/vuex-douyu

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vuex版的斗鱼 (vuex-douyu)

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

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

proxyTable: {	
  '/api': {	
    target: 'http:https://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

About

vuex2斗鱼直播页面

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 61.6%
  • JavaScript 25.5%
  • CSS 10.9%
  • HTML 2.0%