mirror of
https://github.com/keven1024/015.git
synced 2026-05-26 07:08:02 +00:00
chore(lint): rename lint action step for clarity and consistency in Gitea workflow
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user