diff --git a/src/api/user.js b/src/api/user.js index c626921..77eaada 100644 --- a/src/api/user.js +++ b/src/api/user.js @@ -4,7 +4,14 @@ export function login(data) { return request({ url: '/system/auth/login', method: 'post', - data + data: data + }) +} +export function reg(data) { + return request({ + url: '/system/auth/reg', + method: 'post', + data: data }) } diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 0ca5cf6..413174f 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -13,17 +13,11 @@ - Home + 主页 - - Github - - - Docs - - Log Out + 退出登录 diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 71e0ec2..41e7e47 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -1,14 +1,15 @@