GreatWebTech is one of my website. Visit Demo
npm run serve
git clone https://github.com/double2kill/greatwebtech.git
npm install
npm run serve
npm run build
npm run test
npm run test:unit
- Install nginx to you server
git clone [this repo]
npm install
npm run build
- you could see a latest
dist/
folder - copy
dist/*
tonginx/html/*
- modify
dist/config.js
and then copy to your server html dir
window.CONFIG = {
SEARCH_ORIGIN: 'http://www.greatwebtech.cn/search/',
TYPE: 'only-search',
LOAD_DATA_ENTER_PAGE: true,
};
SEARCH_ORIGIN 搜索的后端接口地址
TYPE: only-search, 只有搜索的路由 / TYPE: 其他值, 包括 home about table 路由
LOAD_DATA_ENTER_PAGE, true/false 进入页面后是否加载数据