Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/detached' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
han201379873 committed Jun 2, 2024
2 parents 6780282 + 4186201 commit e2b2f06
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

// Disable the default formatter, use eslint instead
"prettier.enable": false,
"editor.formatOnSave": true,
"editor.formatOnSave": false,

// Auto fix
"editor.codeActionsOnSave": {
Expand Down
11 changes: 6 additions & 5 deletions src/components/GiCell/GiCellTag.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ const props = defineProps({
}
})
const dictItem = computed(() => {
const dictItem = computed((): LabelValueState => {
try {
return props.dict.find((d) => d.value === String(props.value) || d.value === Number(props.value))
return props.dict.find(
(d) => d.value === String(props.value) || d.value === Number(props.value)
) || { label: '', value: '' }
} catch (error) {
return []
return { label: '', value: '' }
}
}
)
})
</script>

<style lang="scss" scoped></style>
3 changes: 2 additions & 1 deletion src/layout/components/Header/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import HeaderRightBar from '../HeaderRightBar/index.vue'
import MenuFoldBtn from '../MenuFoldBtn.vue'
defineOptions({ name: 'Header' })
defineOptions({ name: 'LayoutHeader' })
</script>

<style lang="scss" scoped>
Expand All @@ -31,6 +31,7 @@ defineOptions({ name: 'Header' })
.header {
display: flex;
align-items: center;
.header-right {
flex: 1;
overflow: hidden;
Expand Down
2 changes: 1 addition & 1 deletion src/layout/components/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<script setup lang="ts">
import { useAppStore, useTabsStore } from '@/stores'
defineOptions({ name: 'Main' })
defineOptions({ name: 'LayoutMain' })
const appStore = useAppStore()
const tabsStore = useTabsStore()
</script>
Expand Down

0 comments on commit e2b2f06

Please sign in to comment.