From a1c5236c8f0f58d9f15802088dd8ac3d9cc9aff5 Mon Sep 17 00:00:00 2001 From: lyc Date: Wed, 9 Oct 2024 11:29:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95-=E6=B8=85=E9=99=A4=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E7=9A=84=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/views/login/index.vue | 53 +++++++++++--------------- 1 file changed, 22 insertions(+), 31 deletions(-) diff --git a/src/renderer/src/views/login/index.vue b/src/renderer/src/views/login/index.vue index 5b62af3..b883d6d 100644 --- a/src/renderer/src/views/login/index.vue +++ b/src/renderer/src/views/login/index.vue @@ -2,7 +2,7 @@
-

欢迎登录 {{homeTitle}}

+

欢迎登录 {{ homeTitle }}

@@ -14,46 +14,28 @@ - +
- 记住密码 - + 记住密码 +
- 登录 + 登录
- - + + @@ -69,6 +51,7 @@ import leftBg2 from '@/assets/images/login/left-bg2.png' import WindowTools from '@/components/window-tools/index.vue' import SelectSubject from '@/components/select-subject/index.vue' import Register from './components/Register.vue' +import { sessionStore } from '@/utils/store' const { session } = require('@electron/remote') const downloadProp = ref(0) @@ -99,7 +82,7 @@ ipcRenderer.on('update-app-progress', (e, prop) => { showDownLoading.value = prop !== 100 }) // 打开弹窗 -const RegisterModel = type =>{ +const RegisterModel = type => { RegModel.value.OpenModel(type) } //登录 @@ -168,6 +151,13 @@ const setCookie = (name, value) => { onMounted(() => { localStorage.clear() + sessionStore.set('subject', { + bookList: null, + curBook: null, + curNode: null, + defaultExpandedKeys: [], + subjectTree: [] + }) getCookie() }) @@ -179,6 +169,7 @@ onMounted(() => { align-items: center; justify-content: center; -webkit-app-region: drag; + .box-item { width: 444px; height: 520px;