Commit b68f70f2 by jack

修复bug

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