chore(lint): rename lint action step for clarity and consistency in Gitea workflow

This commit is contained in:
keven1024
2025-12-20 08:42:05 +08:00
parent 831d9b2660
commit 0c980e8b6c
2 changed files with 12 additions and 12 deletions

View File

@@ -38,7 +38,7 @@ jobs:
with:
go-version: '1.25'
- name: Install golangci-lint
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: latest
@@ -55,7 +55,7 @@ jobs:
with:
go-version: '1.25'
- name: Install golangci-lint
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: latest

View File

@@ -1,7 +1,7 @@
<template>
<div class="flex flex-col gap-5 py-5 items-center w-full h-full">
<component :is="renderComponent" />
</div>
<div class="flex flex-col gap-5 py-5 items-center w-full h-full">
<component :is="renderComponent" />
</div>
</template>
<script setup lang="ts">
@@ -12,14 +12,14 @@ const route = useRoute()
const router = useRouter()
const type = computed(() => route?.query?.type)
onMounted(() => {
if (!isString(type.value) || type.value?.length === 0) {
router.push({ query: { type: 'file' }, replace: true })
}
if (!isString(type.value) || type.value?.length === 0) {
router.push({ query: { type: 'file' }, replace: true })
}
})
const renderList = [
{ key: 'file', component: FileUploadView },
{ key: 'text', component: TextUploadView },
{ key: 'file', component: FileUploadView },
{ key: 'text', component: TextUploadView },
]
const renderComponent = computed(() => renderList.find(item => item.key === type.value)?.component)
</script>
const renderComponent = computed(() => renderList.find((item) => item.key === type.value)?.component)
</script>