diff --git a/src/components/PasswordDialog.vue b/src/components/PasswordDialog.vue index 1dfa78c..8eae823 100644 --- a/src/components/PasswordDialog.vue +++ b/src/components/PasswordDialog.vue @@ -64,6 +64,7 @@ const handleVerify = async () => { if (res?.session_id) { localStorage.setItem('m9z_session_id', res.session_id) ElMessage.success('验证成功') + location.reload() visible.value = false emits('verified', res.session_id) } else { diff --git a/src/utils/rpc.js b/src/utils/rpc.js index c2efce9..484bb96 100644 --- a/src/utils/rpc.js +++ b/src/utils/rpc.js @@ -17,7 +17,7 @@ const guid = () => { } const instance = axios.create({ baseURL: '/', - timeout: 10000, + timeout: 30 * 1000, responseType: 'json', })