- 增加 npm start 快捷启动

This commit is contained in:
sin 2019-03-04 23:49:57 +08:00
parent 13e9b5526b
commit 0b22c090e6
3 changed files with 10 additions and 10 deletions

View File

@ -1,4 +1,3 @@
# Vue Shopping
# vue 商城
> TODO

View File

@ -3,7 +3,8 @@
"version": "0.1.0",
"private": true,
"scripts": {
"start": "vue-cli-service serve",
"start": "npm run serve",
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},

View File

@ -3,15 +3,15 @@ import request from "../config/request";
export function GetPage() {
return request({
url: '/Page/GetPage',
method: 'get',
url: '/Page/GetPage',
method: 'get',
})
}
}
export function getProduct(id) {
return request({
url: '/Page/Product',
method: 'get',
params: {id}
url: '/Page/Product',
method: 'get',
params: { id }
})
}
}