Skip to content

Commit

Permalink
perf: change arrow key symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
ayangweb committed Mar 16, 2023
1 parent f2bec39 commit 9a4a455
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ChatGPT-Desktop

## 基于 tauri + vue3 + unocss + arco 开发的跨平台桌面应用
## 基于 tauri + vue3 开发的跨平台桌面应用

## 项目正在开发中,欢迎提交 Pull Request

Expand Down
2 changes: 1 addition & 1 deletion src/components/Avatar/index.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import multiAvatar from '@multiavatar/multiavatar'
const props = defineProps<{ value: string }>()
const props = defineProps<{ value?: string }>()
const avatar = computed(() =>
multiAvatar(props.value || import.meta.env.VITE_APP_NAME)
Expand Down
5 changes: 1 addition & 4 deletions src/components/Function/components/SettingsModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const { apiKey, autoStart } = storeToRefs(useSettingsStore())
title="设置"
simple
hide-cancel
unmount-on-close
:visible="visible"
:mask-closable="false"
:mask-style="{
Expand All @@ -22,9 +21,7 @@ const { apiKey, autoStart } = storeToRefs(useSettingsStore())
>
<div class="flex flex-col gap-8">
<div class="flex gap-2">
<a-checkbox v-model="autoStart" @change="autoStart = !autoStart">
开机自启动
</a-checkbox>
<a-checkbox v-model="autoStart">开机自启动</a-checkbox>
<a-checkbox>隐藏菜单栏图标</a-checkbox>
</div>

Expand Down
8 changes: 4 additions & 4 deletions src/utils/keyMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,19 @@ export const specialKeys = [
},
{
code: 'ArrowUp',
symbol: ''
symbol: ''
},
{
code: 'ArrowRight',
symbol: ''
symbol: ''
},
{
code: 'ArrowDown',
symbol: ''
symbol: ''
},
{
code: 'ArrowLeft',
symbol: ''
symbol: ''
}
]

Expand Down

0 comments on commit 9a4a455

Please sign in to comment.