-
+
@@ -26,21 +18,41 @@
diff --git a/src/pages/account/login/index.vue b/src/pages/account/login/index.vue
index 7b6cc24..34aa2bd 100644
--- a/src/pages/account/login/index.vue
+++ b/src/pages/account/login/index.vue
@@ -1,13 +1,5 @@
-
欢迎使用请登录
@@ -117,6 +109,7 @@ export default {
this.$refs.login.validate(valid => {
if (valid) {
this.login(this.form).then(() => {
+ window.opener && window.opener.location.reload() // 刷新官网
let redirect = this.$route.query.redirect ? decodeURIComponent(this.$route.query.redirect) : '/index'
this.$router.replace(redirect)
}).catch(res => {
@@ -204,157 +197,131 @@ export default {
\ No newline at end of file
diff --git a/src/setting.js b/src/setting.js
index 250ecfd..fd69b8d 100644
--- a/src/setting.js
+++ b/src/setting.js
@@ -32,6 +32,8 @@ const Setting = {
errorModalType: 'Message',
// Cookies 默认保存时间,单位:天
cookiesExpires: 1,
+ // 长时间未操作,自动退出登录时间
+ autoLogoutTime: 3600000,
/**
* localStorage里保存的token的key
*/