Git Product home page Git Product logo

wh-web's Introduction

wh-web

项目介绍

vue.js+node.js+webpack构建的前端项目,后端用的是我的另一个项目wh-server(前后端分离)。

项目展示

地址:https://smallsnail-wh.github.io 用户名:admin 密码:admin (第一次打开可能会有点慢)

技术栈

  • vue2
  • vuex
  • vue-router
  • axios
  • iview
  • webpack

前后端通信:

使用的是axios库。

UI 组件库:

使用了iview组件库。

安全协议:

oauth2

前端界面开发

注:需要安装nodejs

  • 启动:
    1. 命令行进入项目文件夹
    2. 运行npm install
    3. 运行npm run dev启动前端工程
  • 打包命令: 运行npm run build

Http状态码

在axios.js中拦截异常,并进行处理。
目前以写的异常处理有:
	1. 401 清除token信息并跳转到登录页面
	2. 403 无权限,跳转到首页

如果你项目启动有错误:

  1. 项目启动报错,请试一下用管理员权限输入命令。
  2. 如果出现如下图的错误,请把webpack.dev.config.js和webpack.prod.config.js中的fs.write(fd, buf, 0, buf.length, 0, function(err, written, buffer) {});更改为fs.write(fd, buf, 0, 'utf-8', function(err, written, buffer) {}); 这里写图片描述

该项目的升级版:

https://github.com/smallsnail-wh/interest

wh-web's People

Contributors

smallsnail-wh avatar

Watchers

James Cloos avatar

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.