Live: http://book.mofunc.com
npm install
npm run serve
npm run build
pages => pages.config.js
{
// page index.html
entry: "src/main.ts",
path: "index",
template: "public/index.html", // default
pagesRoot: "src/pages/", // => @/
pages: [
{
// page sort.html
entry: "@/sort/main.ts",
path: "sort",
template: "public/index.html", // optional. use default if undefined
},
{
// page top.html
entry: "@/top/main.ts",
path: "top",
}
]
}
api config => src/utils/config.ts
{
MODE: "localhost", // or development
...
REQUST: {
// for localhost
localhost: {
BASE_URL: "http://192.168.244.121:51202/",
},
// for development
development: {
BASE_URL: "http://dev.mofunc.com/ws/",
},
// ...
},
};