diff --git a/src/components/WebsiteCard/index.vue b/src/components/WebsiteCard/index.vue new file mode 100644 index 0000000..0e4f6ff --- /dev/null +++ b/src/components/WebsiteCard/index.vue @@ -0,0 +1,40 @@ + + + diff --git a/src/pages/admin/_components/categorys/index.vue b/src/pages/admin/_components/categorys/index.vue index f7fa5cc..b1dd7a2 100644 --- a/src/pages/admin/_components/categorys/index.vue +++ b/src/pages/admin/_components/categorys/index.vue @@ -2,12 +2,14 @@
- 查询 + + 查询 + 新增 >() // 请求列表 -const { data, pending, refresh } = await useFetch>>( +const { data, refresh, status } = await useFetch>>( '/api/categorys', { query: { current, pageSize, name }, diff --git a/src/pages/admin/_components/websites/index.vue b/src/pages/admin/_components/websites/index.vue index b8b75c3..d6c8dbb 100644 --- a/src/pages/admin/_components/websites/index.vue +++ b/src/pages/admin/_components/websites/index.vue @@ -10,7 +10,7 @@ v-model="form.category_id" clearable filterable - :loading="categoryLoading" + :loading="categoryLoading === 'pending'" placeholder="请选择所属分类" style="width: 240px" > @@ -23,12 +23,14 @@ - 查询 + + 查询 + 新增 >() // 请求分类列表 -const { data: categoryData, pending: categoryLoading } = await useFetch< +const { data: categoryData, status: categoryLoading } = await useFetch< Response> >('/api/categorys', { query: { current: 1, pageSize: 9999 } // 这里请求全部分类 }) // 请求站点列表 -const { data, pending, refresh } = await useFetch>>( +const { data, status, refresh } = await useFetch>>( '/api/websites', { query: Object.assign(form, { diff --git a/src/pages/index.vue b/src/pages/index.vue index 9352acc..f04f298 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -1,20 +1,54 @@ diff --git a/Tailwind .config.cjs b/tailwind.config.cjs similarity index 100% rename from Tailwind .config.cjs rename to tailwind.config.cjs