Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
Perfect api settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
ruibaby committed Jun 29, 2019
1 parent f281797 commit 7cbf49e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/store/getters.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
}
}

Expand Down
12 changes: 6 additions & 6 deletions src/views/user/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,22 @@

<a-row>
<a
class="tip"
@click="handleApiModifyModalOpen"
class="tip animated fadeInUp"
:style="{'animation-delay': '0.4s'}"
>
> 更改博客 API 地址
API 设置
</a>
</a-row>

<a-modal
title="更改博客 API 地址"
title="API 设置"
:visible="apiModifyVisiable"
@ok="handleApiModifyOk"
@cancel="handleApiModifyCancel"
>
<a-form>
<a-form-item extra="如果 halo-admin 不是独立部署,请不要更改此 url">
<a-form-item extra="如果 halo admin 不是独立部署,请不要更改此 API">
<a-input v-model="apiUrl"></a-input>
</a-form-item>

Expand Down Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 7cbf49e

Please sign in to comment.