fix: 返回首页按钮移到Vue作用域外 + 过渡动画升级
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
- back-home-link 移到 #login/#regist 的 Vue 实例外面,不受 v-cloak 影响 - 过渡动画改用捕获阶段(true),比 Vue 先拦截 click - 加 transitioning 防抖,防止重复触发 - 暴露 window.__navigateTo() 供 Vue 编程式跳转使用
This commit is contained in:
@@ -16,11 +16,11 @@
|
||||
<div class="ddr ddr5"></div>
|
||||
</div>
|
||||
<div class="template">
|
||||
<a href="/" class="back-home-link">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M19 12H5"/><path d="M12 19l-7-7 7-7"/></svg>
|
||||
返回首页
|
||||
</a>
|
||||
<div id="login" v-cloak>
|
||||
<a href="/" class="back-home-link">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M19 12H5"/><path d="M12 19l-7-7 7-7"/></svg>
|
||||
返回首页
|
||||
</a>
|
||||
<div class="login-container">
|
||||
<div class="login-jump-btn">
|
||||
<div class="lang-box">
|
||||
|
||||
Reference in New Issue
Block a user