Skip to content

Commit

Permalink
feat: 添加忘记密码入口 #1570 (#1576)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuri0528 authored Mar 28, 2024
1 parent 43b2458 commit b20f154
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/bk-login/pages/src/views/home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,9 @@
<Password v-if="activeIdp?.plugin.id === 'local'" :idp-id="activeIdp.id" />
<div>
<div class="tenant-password">
<span class="cursor-pointer" @click="protocolVisible = true">用户协议 ></span>
<span class="cursor-pointer" @click="handleResetPassword">忘记密码?</span>
</div>
<Protocol v-if="protocolVisible" @close="protocolVisible = false" />
Expand Down Expand Up @@ -291,6 +292,11 @@ onBeforeMount(() => {
});
});
const handleResetPassword = () => {
// 确认环境变量后补充路径
window.location.href = `/password/?tenantId=${tenantId.value}`;
};
</script>
<style lang="postcss" scoped>
Expand Down Expand Up @@ -418,6 +424,12 @@ onBeforeMount(() => {
}
}
.tenant-password {
display: flex;
align-items: center;
justify-content: space-between;
}
.content-list {
font-weight: 400;
font-size: 14px;
Expand Down

0 comments on commit b20f154

Please sign in to comment.