It is a project based on Vue.js
After npm run dev
it will default load at localhost:8081
If you haven't configured NPM yet, you can still view the final result directly by ./docs/index.html
# install dependencies
npm install
# serve with hot reload at localhost:8081
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
# run unit tests
npm run unit
# run all tests
npm test
For a detailed explanation on how things work, check out the guide and docs for vue-loader.
-
If you want to add a totally new page => Go to
src/layout/header.vue
add a new entrance. => Go tosrc/view
add a new folder and add a file named index.vue in this folder. => Go tosrc/router/index.js
add new router information. -
If you want to change something on the page (For exampe,I want to modify 'homepage') => Go to
src/view/homepage/index.vue
When you use npm run build
,please delete unnecessary and <script> tag in index.html