Skip to content

tchen212/Vue-SPA

Repository files navigation

Vue SPA

Vue2.0 vue-router vuex echats axios

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

Publish by nginx

location ~ /oaservice/(api|images|files)/ {
  proxy_pass              https://218.242.246.26:8087;
  proxy_next_upstream     error timeout;
  proxy_connect_timeout   8s;
  proxy_cookie_path /oaservice/ /;

  proxy_intercept_errors  on;
  proxy_set_header        X-Forwarded-Host $http_host;
  proxy_set_header        X-Forwarded-Server $host;
  proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header        X-Real-IP $remote_addr;
  proxy_set_header        Host $http_host;
}

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

About

Vue2.o + Vue Router + Vuex + Echarts + axios

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published