diff --git a/src/views/user/Login.vue b/src/views/user/Login.vue index 979fc4207..7ecfa90e7 100644 --- a/src/views/user/Login.vue +++ b/src/views/user/Login.vue @@ -3,7 +3,10 @@ -
+
- API 设置 + - - +
+
+ + - - - - + + + + + + 恢复默认 + + + 保存设置 + - - - 恢复默认 - - - - + + + + +
@@ -149,21 +185,20 @@ export default { this.$router.replace({ name: 'Dashboard' }) } }, - handleApiModifyModalOpen() { - this.apiUrl = this.defaultApiUrl - this.apiModifyVisible = true - }, handleApiModifyOk() { this.setApiUrl(this.apiUrl) this.apiModifyVisible = false }, - handleApiModifyCancel() { - this.apiModifyVisible = false - }, handleApiUrlRestore() { this.restoreApiUrl() this.apiUrl = this.defaultApiUrl }, + toggleShowApiForm() { + this.apiModifyVisible = !this.apiModifyVisible + if (this.apiModifyVisible) { + this.apiUrl = this.defaultApiUrl + } + }, toggleHidden() { this.resetPasswordButton = !this.resetPasswordButton }