mirror of https://github.com/halo-dev/halo-admin
Perfect api settings.
parent
f2817971c4
commit
7cbf49e911
|
@ -12,7 +12,7 @@ const getters = {
|
||||||
if (state.app.apiUrl) {
|
if (state.app.apiUrl) {
|
||||||
return state.app.apiUrl
|
return state.app.apiUrl
|
||||||
}
|
}
|
||||||
return `${window.location.protocol}\\\\${window.location.host}`
|
return `${window.location.protocol}//${window.location.host}`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -51,21 +51,22 @@
|
||||||
|
|
||||||
<a-row>
|
<a-row>
|
||||||
<a
|
<a
|
||||||
class="tip"
|
|
||||||
@click="handleApiModifyModalOpen"
|
@click="handleApiModifyModalOpen"
|
||||||
|
class="tip animated fadeInUp"
|
||||||
|
:style="{'animation-delay': '0.4s'}"
|
||||||
>
|
>
|
||||||
> 更改博客 API 地址
|
API 设置
|
||||||
</a>
|
</a>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
|
||||||
<a-modal
|
<a-modal
|
||||||
title="更改博客 API 地址"
|
title="API 设置"
|
||||||
:visible="apiModifyVisiable"
|
:visible="apiModifyVisiable"
|
||||||
@ok="handleApiModifyOk"
|
@ok="handleApiModifyOk"
|
||||||
@cancel="handleApiModifyCancel"
|
@cancel="handleApiModifyCancel"
|
||||||
>
|
>
|
||||||
<a-form>
|
<a-form>
|
||||||
<a-form-item extra="如果 halo-admin 不是独立部署,请不要更改此 url">
|
<a-form-item extra="如果 halo admin 不是独立部署,请不要更改此 API">
|
||||||
<a-input v-model="apiUrl"></a-input>
|
<a-input v-model="apiUrl"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|
||||||
|
@ -161,9 +162,8 @@ body {
|
||||||
padding: 16px 32px 32px 32px;
|
padding: 16px 32px 32px 32px;
|
||||||
box-shadow: -4px 7px 46px 2px rgba(0, 0, 0, 0.1);
|
box-shadow: -4px 7px 46px 2px rgba(0, 0, 0, 0.1);
|
||||||
.tip {
|
.tip {
|
||||||
font-size: 0.6rem;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin-top: 1rem;
|
margin-top: .5rem;
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue