Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit 6c1302f

Browse files
committed
新增 忘记密码
1 parent 4cf9233 commit 6c1302f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/app/views/Login.vue

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@
7878
<div class="login-btn-wrapper row-mt">
7979
<transition name="fade">
8080
<div v-if="cause" id="login-cause">{{ cause }}</div>
81+
<div v-else class="login-info-wrapper fgp" @click="forgotPassword">
82+
<a href="javascript:void(0)" rel="noopener noreferrer"> 忘记密码 </a>
83+
</div>
8184
</transition>
8285
<el-button
8386
type="primary"
@@ -225,6 +228,16 @@ export default {
225228
url: API_USER_LOGIN_INFO
226229
});
227230
this.loginInfo = res?.loginInfo ?? "";
231+
},
232+
forgotPassword() {
233+
this.$confirm(
234+
`如果您是管理员且第一次登录,默认账号密码为:root,123456。如果您是普通用户,请要求您的服务商帮助您重置密码。如果您是管理员,请删除 mcsmanager/web/data/Users 文件夹重启面板端以重新加载用户。`,
235+
"忘记密码",
236+
{
237+
confirmButtonText: "好的",
238+
cancelButtonText: "关闭"
239+
}
240+
);
228241
}
229242
},
230243
async mounted() {
@@ -399,6 +412,11 @@ export default {
399412
margin-right: 18px;
400413
}
401414
415+
.fgp {
416+
font-size: 12px;
417+
margin-right: 18px;
418+
}
419+
402420
/* 针对手机的登录界面 */
403421
@media (max-width: 900px) {
404422
#login-panel {

0 commit comments

Comments
 (0)