From 7cbf49e9117477cc58fc7c0b93950bcb8ff36372 Mon Sep 17 00:00:00 2001 From: ruibaby Date: Sat, 29 Jun 2019 12:46:13 +0800 Subject: [PATCH] Perfect api settings. --- src/store/getters.js | 2 +- src/views/user/Login.vue | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/store/getters.js b/src/store/getters.js index a8e1309f..a7ca8c63 100644 --- a/src/store/getters.js +++ b/src/store/getters.js @@ -12,7 +12,7 @@ const getters = { if (state.app.apiUrl) { return state.app.apiUrl } - return `${window.location.protocol}\\\\${window.location.host}` + return `${window.location.protocol}//${window.location.host}` } } diff --git a/src/views/user/Login.vue b/src/views/user/Login.vue index 84f5cd52..2e620fa7 100644 --- a/src/views/user/Login.vue +++ b/src/views/user/Login.vue @@ -51,21 +51,22 @@ - > 更改博客 API 地址 + API 设置 - + @@ -161,9 +162,8 @@ body { padding: 16px 32px 32px 32px; box-shadow: -4px 7px 46px 2px rgba(0, 0, 0, 0.1); .tip { - font-size: 0.6rem; cursor: pointer; - margin-top: 1rem; + margin-top: .5rem; float: right; } }