From 2723a73b4770a92cebd1555bec7ef4c918cc9941 Mon Sep 17 00:00:00 2001 From: jmal Date: Thu, 14 May 2020 15:25:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E7=AE=A1=E7=90=86=E5=91=98=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/user.js | 15 ++++++++ src/views/login/index.vue | 79 +++++++++++++++++++++++++++++++++------ 2 files changed, 82 insertions(+), 12 deletions(-) diff --git a/src/api/user.js b/src/api/user.js index f003419..82c3f59 100644 --- a/src/api/user.js +++ b/src/api/user.js @@ -79,4 +79,19 @@ export function delUser(id) { }) } +export function hasUser() { + return request({ + url: 'public/has_user', + method: 'get', + }) +} + +export function initialization(data) { + return request({ + url: '/public/initialization', + method: 'post', + data + }) +} + diff --git a/src/views/login/index.vue b/src/views/login/index.vue index f494657..e6acb7d 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -3,7 +3,8 @@
-

登录 jmalCloud

+

登录 jmalCloud

+

创建管理员

@@ -41,7 +42,27 @@ - 登录 + + + + + + + + + + + {{initialize?'创建':'登录'}} @@ -55,6 +76,8 @@