浏览代码

add reloading

huai-sian 3 年之前
父节点
当前提交
a6d4f27eae
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      html/reset_pwd.html
  2. 2 2
      html/reset_pwd_email.html

+ 2 - 2
html/reset_pwd.html

@@ -40,8 +40,8 @@
                         中/En
                         中/En
                     </a>
                     </a>
                     <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
                     <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
-                        <li><button class="nav-link lan-swtich" aria-current="page" set-lan="html:en" onclick="changeLan(this)" value="en">English</button></li>
-                        <li><button class="nav-link lan-switch" aria-current="page" set-lan="html:zh" onclick="changeLan(this)" value="zh">中文</button></li>
+                        <li><button class="nav-link lan-swtich" aria-current="page" set-lan="html:en" onclick="changeLan(this);window.location.reload();" value="en">English</button></li>
+                        <li><button class="nav-link lan-switch" aria-current="page" set-lan="html:zh" onclick="changeLan(this);window.location.reload();" value="zh">中文</button></li>
                     </ul>
                     </ul>
                 </li>
                 </li>
                 <li class="nav-item">
                 <li class="nav-item">

+ 2 - 2
html/reset_pwd_email.html

@@ -40,8 +40,8 @@
                         中/En
                         中/En
                     </a>
                     </a>
                     <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
                     <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
-                        <li><button class="nav-link lan-swtich" aria-current="page" set-lan="html:en" onclick="changeLan(this)" value="en">English</button></li>
-                        <li><button class="nav-link lan-switch" aria-current="page" set-lan="html:zh" onclick="changeLan(this)" value="zh">中文</button></li>
+                        <li><button class="nav-link lan-swtich" aria-current="page" set-lan="html:en" onclick="changeLan(this);window.location.reload();" value="en">English</button></li>
+                        <li><button class="nav-link lan-switch" aria-current="page" set-lan="html:zh" onclick="changeLan(this);window.location.reload();" value="zh">中文</button></li>
                     </ul>
                     </ul>
                 </li>
                 </li>
                 <li class="nav-item">
                 <li class="nav-item">