Skip to content

Commit

Permalink
修复筛选问题并启动vue调试器
Browse files Browse the repository at this point in the history
  • Loading branch information
Val-istar-Guo committed Mar 28, 2024
1 parent 33ac9a7 commit 163d8ce
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
11 changes: 8 additions & 3 deletions app/frontend/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ import themes from 'daisyui/src/theming/themes'
import colors from 'tailwindcss/colors'

export default defineNuxtConfig({
// devtools: { enabled: false },
app: {},
// ssr: false,

ssr: false,
modules: [
'@pinia/nuxt',
'@nuxtjs/tailwindcss',
Expand Down Expand Up @@ -104,4 +102,11 @@ export default defineNuxtConfig({
},
},
},

vue: {
// @ts-ignore
config: {
devtools: true,
},
},
})
11 changes: 9 additions & 2 deletions app/frontend/pages/applications.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ const { pending, refresh } = useAsyncData(
)
const showCreateModal = ref(false)
const filterType = ref<'title' | 'tag'>('title')
const filterTypeDescription = {
title: 'Title',
tag: 'Tag',
}
</script>

<template>
Expand All @@ -51,11 +58,11 @@ const showCreateModal = ref(false)

<div class="flex items-center justify-between">
<div class="d-join w-1/2 flex">
<SelectBox value="title">
<SelectBox v-model="filterType" class="w-32">
<SelectButton
class="d-join-item d-select-lg d-select-bordered"
>
Title
{{ filterTypeDescription[filterType] }}
</SelectButton>

<template #options>
Expand Down

0 comments on commit 163d8ce

Please sign in to comment.