Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: optimize the software loading experience #153

Merged
merged 2 commits into from
Mar 31, 2023

Conversation

Azir-11
Copy link
Collaborator

@Azir-11 Azir-11 commented Mar 31, 2023

No description provided.


const handleDoubleClick = () => {
isFix.value = !isFix.value
}

onMounted(() => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里就不需要 onMounted 了,直接在 useInit 中的 initSQL 执行完之后,在发送监听!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里的onMounted是等主屏的全部待显示内容加载完才切换,initSQL之后有可能出现其他环节没准备好的情况,虽然几率非常小,但是我还是不想让那可能的一点点透明出来的

},
{
"width": 400,
"height": 200,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

加载屏应当与软件显示的大小一样才对,就是不要加 width 和 height 了!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

无边框的话,加载屏的大小可以小一点的,因为有切窗口的环节,太大了效果甚至没有小的好

@ayangweb ayangweb merged commit 44857ff into Synaptrix:master Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants