feat: 添加登录组件,更新认证流程,优化输入标签组件
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
import { authClient, modelControllerSignup } from "@/auth";
|
||||
import { authClient, modelControllerLogin, modelControllerSignup } from "@/auth";
|
||||
|
||||
const page = useTemplateRef<PageInstance>("page");
|
||||
const { user } = useAuth();
|
||||
|
||||
async function openSignin() {
|
||||
const modal = await modelControllerSignup(page.value?.$el);
|
||||
const modal = await modelControllerLogin(page.value?.$el);
|
||||
await modal.present();
|
||||
}
|
||||
async function openSignup() {
|
||||
@@ -32,10 +32,10 @@ async function handleLogout() {
|
||||
</IonHeader>
|
||||
|
||||
<IonButton @click="openSignin">
|
||||
Signin
|
||||
Log in
|
||||
</IonButton>
|
||||
<IonButton @click="openSignup">
|
||||
Signup
|
||||
Sign up
|
||||
</IonButton>
|
||||
<IonButton @click="handleLogout">
|
||||
Log out
|
||||
|
||||
Reference in New Issue
Block a user