update login v:bind

v3
veypi 3 months ago
parent f188882c0c
commit cbf9f7a6e6

@ -18,7 +18,7 @@ type Options struct {
}
var Config = &Options{
TokenExpire: time.Second * 10,
TokenExpire: time.Second * 100,
ID: "test",
Key: "asdfghjklqwertyuiopzxcvbnm1234567890",
DSN: "root:123456@tcp(127.0.0.1:3306)/test?charset=utf8&parseTime=True&loc=Local",

@ -284,10 +284,8 @@
<a href="#" @click="handleSocialLogin('qq')"><i class="fa-brands fa-qq"></i></a>
</div>
<span>或使用您的用户名进行注册</span>
<input type="text" placeholder="用户名" !value="signUpForm.username"
@input="signUpForm.username = $event.target.value" />
<input type="password" placeholder="密码" !value="signUpForm.password"
@input="signUpForm.password = $event.target.value" />
<input type="text" placeholder="用户名" v:value="signUpForm.username" />
<input type="password" placeholder="密码" v:value="signUpForm.password" />
<div class="error-message">{{ signUpError }}</div>
<button>注册</button>
</form>
@ -301,10 +299,8 @@
<a href="#" @click="handleSocialLogin('qq')"><i class="fa-brands fa-qq"></i></a>
</div>
<span>或使用您的账户</span>
<input type="text" placeholder="用户名" !value="signInForm.username"
@input="signInForm.username = $event.target.value" />
<input type="password" placeholder="密码" !value="signInForm.password"
@input="signInForm.password = $event.target.value" />
<input type="text" placeholder="用户名" v:value="signInForm.username" />
<input type="password" placeholder="密码" v:value="signInForm.password" />
<a href="#">忘记密码?</a>
<button>登录</button>
</form>

Loading…
Cancel
Save