From 3097fcfc4bdc300cb2d8e3f6c79e867dff3b95ab Mon Sep 17 00:00:00 2001 From: SpringHgui Date: Tue, 10 Mar 2020 23:38:00 +0800 Subject: [PATCH] 22 --- src/assets/scss/main.scss | 5 +++++ src/common/config.js | 2 +- src/common/sign.service.js | 8 +++++--- src/views/Signup.vue | 28 +++++++++++++--------------- 4 files changed, 24 insertions(+), 19 deletions(-) diff --git a/src/assets/scss/main.scss b/src/assets/scss/main.scss index 58d3f8e..3cd675f 100644 --- a/src/assets/scss/main.scss +++ b/src/assets/scss/main.scss @@ -25,3 +25,8 @@ a:active { .boder-bottom { border-bottom: 1px solid rgba(0, 0, 0, 0.1); } + +.sign-form { + width: 600px; + margin: auto; +} diff --git a/src/common/config.js b/src/common/config.js index b3cd512..ed65bef 100644 --- a/src/common/config.js +++ b/src/common/config.js @@ -1,3 +1,3 @@ -const API_URL = "https://conduit.productionready.io/api"; +export const API_URL = "https://localhost:44309/api"; // export const API_URL = "http://localhost:56055/api"; export default API_URL; \ No newline at end of file diff --git a/src/common/sign.service.js b/src/common/sign.service.js index 82ead29..10be237 100644 --- a/src/common/sign.service.js +++ b/src/common/sign.service.js @@ -1,7 +1,9 @@ import ApiService from "@/common/api.service" export const TagsService = { - get() { - return ApiService.get("tags"); + sign(param) { + return ApiService.post("sign/sign", param); } -}; \ No newline at end of file +}; + +export default TagsService; diff --git a/src/views/Signup.vue b/src/views/Signup.vue index a9d295a..42f7c64 100644 --- a/src/views/Signup.vue +++ b/src/views/Signup.vue @@ -1,8 +1,4 @@