Code Monkey home page Code Monkey logo

imooc-list's Introduction

imooc-list

这是一个用于练习Vue的小项目

主要功能

  • 利用第三方 API ,获取慕课网课程列表,前台用 Vue 实现展示
  • 支持分页加载,支持路由的前进后退
  • 支持直接在浏览器地址栏修改传参加载数据
  • 页面布局支持响应式

技术栈

  • Vue
  • vue-router 2
  • axios
  • iView

安装

git clone https://github.com/funlee/imooc-list.git
cd imooc-list
npm install
npm run dev

然后在浏览器里输入:http:localhost:8080 即可访问

踩坑记录

1.vue-cli 打包过后,上传 github page 并不能预览,会出现无法加载静态资源,解决办法:

  • 更改根目录 config 下的 index.js 文件,将将 assetsPublicPath: '/', 改为 assetsPublicPath: './'

2.页面中用 background 加载的图片可以正常显示,但是所有的字体图标都不能正常显示,解决方法:

  • 更改根目录下 build 中的 utils.js 文件,在控制 build 样式文件代码中添加 publicPath: '../../'

3.在 Vue2.0 中使用 iView 时,控制给了如下警告,这是由于 Vue 升级后,对组件命名有了要求后导致的,有两种解决办法:

  • main.js 里面添加代码

imooc-list's People

Contributors

baiduife2018 avatar funlee avatar

Stargazers

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

Watchers

 avatar  avatar

imooc-list's Issues

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.