diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 5367796..24efe78 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -1,4 +1,3 @@ - Riwa-Ionic 项目提示词 你是一个专业的移动应用开发助手,负责协助开发基于 Ionic + Vue 3 + TypeScript + Capacitor 的跨平台移动应用项目。 diff --git a/cypress.config.ts b/cypress.config.ts index 7c51293..42765ed 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -7,7 +7,7 @@ export default defineConfig({ videosFolder: "tests/e2e/videos", screenshotsFolder: "tests/e2e/screenshots", baseUrl: "http://localhost:5173", - // eslint-disable-next-line unused-imports/no-unused-vars + setupNodeEvents(on, config) { // implement node event listeners here }, diff --git a/src/auth/components/login/email/step1.vue b/src/auth/components/login/email/step1.vue index f303192..7c3dd65 100644 --- a/src/auth/components/login/email/step1.vue +++ b/src/auth/components/login/email/step1.vue @@ -4,12 +4,12 @@ import { toastController } from "@ionic/vue"; import { logoGoogle, phonePortraitOutline } from "ionicons/icons"; import { authClient } from "@/auth"; -const { t } = useI18n(); - const emit = defineEmits<{ (e: "success", value: string): void; }>(); +const { t } = useI18n(); + const model = defineModel({ type: String, required: true }); const inputInstance = useTemplateRef("inputInstance"); @@ -48,7 +48,7 @@ async function submitSendVerification() { } else { const toast = await toastController.create({ - message: error?.message || t('auth.common.failedSendCode'), + message: error?.message || t("auth.common.failedSendCode"), duration: 1500, position: "bottom", }); diff --git a/src/auth/components/login/email/step2.vue b/src/auth/components/login/email/step2.vue index 71041fa..67ffe8a 100644 --- a/src/auth/components/login/email/step2.vue +++ b/src/auth/components/login/email/step2.vue @@ -1,20 +1,22 @@