feat: 更新路由重定向至 riwa 页面并添加 riwa 视图组件

This commit is contained in:
2025-12-12 01:27:04 +07:00
parent 7d7c85f669
commit f0bffb821c
2 changed files with 3 additions and 3 deletions

34
src/views/riwa/index.vue Normal file
View File

@@ -0,0 +1,34 @@
<script setup lang="ts">
import { modelControllerSignup } from "@/auth";
const page = useTemplateRef<PageInstance>("page");
const { user } = useAuth();
async function openSignup() {
const modal = await modelControllerSignup(page.value?.$el);
await modal.present();
}
</script>
<template>
<IonPage ref="page">
<IonHeader>
<IonToolbar>
<IonTitle>Home</IonTitle>
</IonToolbar>
</IonHeader>
<IonContent :fullscreen="true">
<IonHeader collapse="condense">
<IonToolbar>
<IonTitle>Home</IonTitle>
</IonToolbar>
</IonHeader>
<IonButton @click="openSignup">
Signup
</IonButton>
{{ user }}
</IonContent>
</IonPage>
</template>