add vConsole trigger for login index
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<div class="login-page diselect">
|
||||
<section class="login-panel">
|
||||
<div class="brand">
|
||||
<logo v-entrance-transition />
|
||||
<logo v-entrance-transition @click="handleLogoClick" />
|
||||
<h1 v-entrance-transition>糕店客户管理</h1>
|
||||
</div>
|
||||
<t-segmented
|
||||
@@ -23,6 +23,7 @@ import PasswordLogin from "@/pages/user/component/PasswordLogin.vue";
|
||||
import SmsLogin from "@/pages/user/component/SmsLogin.vue";
|
||||
import Logo from "@/pages/user/component/Logo.vue";
|
||||
import UserAgreement from "@/pages/user/component/UserAgreement.vue";
|
||||
import { createVConsoleClickHandler, enableVConsole } from "@/utils/vConsole";
|
||||
|
||||
defineOptions({
|
||||
name: "LoginIndex"
|
||||
@@ -36,6 +37,10 @@ const loginTypeOptions = [
|
||||
{ value: "password" as LoginType, label: "密码登录" },
|
||||
{ value: "sms" as LoginType, label: "短信登录" }
|
||||
];
|
||||
|
||||
// ---------- 调试控制台 ----------
|
||||
const handleLogoClick = createVConsoleClickHandler(enableVConsole);
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped lang="less">
|
||||
|
||||
Reference in New Issue
Block a user