|
@@ -0,0 +1,22 @@
|
|
|
|
+<template>
|
|
|
|
+ <div class="min-h-screen bg-gray-100 flex items-center justify-center">
|
|
|
|
+ <div class="bg-white p-8 rounded-lg shadow-md w-full max-w-md">
|
|
|
|
+ <h2 class="text-2xl font-bold text-center mb-6">登录</h2>
|
|
|
|
+ <form @submit.prevent="handleSubmit">
|
|
|
|
+ <div class="mb-4">
|
|
|
|
+ <label for="username" class="block text-sm font-medium text-gray-700 mb-1">用户名</label>
|
|
|
|
+ <input
|
|
|
|
+ v-model="form.username"
|
|
|
|
+ type="text"
|
|
|
|
+ id="username"
|
|
|
|
+ placeholder="请输入用户名"
|
|
|
|
+ class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"
|
|
|
|
+ />
|
|
|
|
+ </div>
|
|
|
|
+ <div class="mb-4">
|
|
|
|
+ <label for="password" class="block text-sm font-medium text-gray-700 mb-1">密码</label>
|
|
|
|
+ <input
|
|
|
|
+ v-model="form.password"
|
|
|
|
+ type="password"
|
|
|
|
+ id="password"
|
|
|
|
+ placeholder="请输入密码"
|