From 0b22c090e643255597389b1ceaa044097d16f81b Mon Sep 17 00:00:00 2001 From: sin <2943460818@qq.com> Date: Mon, 4 Mar 2019 23:49:57 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E5=A2=9E=E5=8A=A0=20npm=20start=20?= =?UTF-8?q?=E5=BF=AB=E6=8D=B7=E5=90=AF=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile-web/README.md | 3 +-- mobile-web/package.json | 3 ++- mobile-web/src/api/page.js | 14 +++++++------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/mobile-web/README.md b/mobile-web/README.md index 46e656413..19aa06f29 100644 --- a/mobile-web/README.md +++ b/mobile-web/README.md @@ -1,4 +1,3 @@ - -# Vue Shopping +# vue 商城 > TODO \ No newline at end of file diff --git a/mobile-web/package.json b/mobile-web/package.json index d7fbac768..044c544b3 100644 --- a/mobile-web/package.json +++ b/mobile-web/package.json @@ -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" }, diff --git a/mobile-web/src/api/page.js b/mobile-web/src/api/page.js index 578b9bbed..b69166fdd 100644 --- a/mobile-web/src/api/page.js +++ b/mobile-web/src/api/page.js @@ -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 } }) -} \ No newline at end of file + } \ No newline at end of file