From 7991973cf4c25527e227b80192e0bd087cfcee58 Mon Sep 17 00:00:00 2001 From: “dzb” <2632970487@qq.com> Date: 星期二, 27 九月 2022 18:26:25 +0800 Subject: [PATCH] 完善系统设置的基本设置 --- src/views/login/index.vue | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/views/login/index.vue b/src/views/login/index.vue index d33b057..420d278 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -4,7 +4,7 @@ <div class="text"> <div class="logo"> <img - src="https://axure-file.lanhuapp.com/90466432-c999-4bf0-80b8-ee3f96a2099e__155eeb2ceaac89ec717869a050964a36.svg" + :src="imgUrl" alt=""> </div> <div class="text-r"> @@ -80,6 +80,7 @@ // username: "admin", // password: "macro123", }, + imgUrl:'', loginRules: { username: [ { required: true, trigger: "blur", validator: validateUsername }, @@ -92,7 +93,12 @@ pwdType: false, }; }, - created() { }, + created() { + const pic = JSON.parse(localStorage.getItem('pic')); + if(pic){ + this.imgUrl = pic.loginPageIconUrl + } + }, methods: { showPwd() { if (!this.pwdType) { @@ -103,7 +109,6 @@ }, ...mapActions(["login"]), handleLogin() { - console.log("in login"); const { username, password } = this.loginForm; const that = this; this.$axios -- Gitblit v1.8.0