- 增加 npm start 快捷启动
parent
13e9b5526b
commit
0b22c090e6
|
@ -1,4 +1,3 @@
|
||||||
|
# vue 商城
|
||||||
# Vue Shopping
|
|
||||||
|
|
||||||
> TODO
|
> TODO
|
|
@ -3,7 +3,8 @@
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "vue-cli-service serve",
|
"start": "npm run serve",
|
||||||
|
"serve": "vue-cli-service serve",
|
||||||
"build": "vue-cli-service build",
|
"build": "vue-cli-service build",
|
||||||
"lint": "vue-cli-service lint"
|
"lint": "vue-cli-service lint"
|
||||||
},
|
},
|
||||||
|
|
|
@ -3,15 +3,15 @@ import request from "../config/request";
|
||||||
|
|
||||||
export function GetPage() {
|
export function GetPage() {
|
||||||
return request({
|
return request({
|
||||||
url: '/Page/GetPage',
|
url: '/Page/GetPage',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getProduct(id) {
|
export function getProduct(id) {
|
||||||
return request({
|
return request({
|
||||||
url: '/Page/Product',
|
url: '/Page/Product',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: {id}
|
params: { id }
|
||||||
})
|
})
|
||||||
}
|
}
|
Loading…
Reference in New Issue