Commit b68f70f2 by jack

修复bug

1 parent 9c72542e
......@@ -78,6 +78,7 @@ export default {
password: "",
captcha: "",
},
title: localStorage.getItem("title"),
});
const { ctx: _this } = getCurrentInstance();
const loginService = new LoginService();
......@@ -176,13 +177,13 @@ export default {
// }, 1000, true);
const logo = localStorage.getItem("logo");
const title = localStorage.getItem('title')
// const title = localStorage.getItem("title");
return {
...toRefs(state),
handleSubmit,
logo,
title
//title,
// updateCaptcha
};
},
......@@ -234,7 +235,7 @@ export default {
}
.home-logo-img {
max-width:100%;
max-width: 100%;
height: 50px;
//margin-bottom: 15px;
}
......
......@@ -16,7 +16,7 @@ const getConfig = (url = URL + '/e-sheild-portal-config') => {
xhr.onreadystatechange = () => {
if (xhr.readyState === 4 && xhr.status === 200) {
let o = xhr.responseText ? JSON.parse(xhr.responseText) : {}
console.log(o.logo)
console.log(o)
localStorage.setItem('logo', o.logo)
localStorage.setItem('title', o.title)
localStorage.setItem('smallLogo',o.smallLogo)
......@@ -31,7 +31,7 @@ const getConfig = (url = URL + '/e-sheild-portal-config') => {
})
}
localStorage.removeItem('title')
//localStorage.removeItem('title')
localStorage.removeItem('BASE_URL')
getConfig()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!