Skip to content

Commit

Permalink
feat: 更新table文件
Browse files Browse the repository at this point in the history
  • Loading branch information
jweboy committed Apr 7, 2024
1 parent aa003ac commit fe58b23
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 278 deletions.
2 changes: 1 addition & 1 deletion .env.development
Original file line number Diff line number Diff line change
@@ -1 +1 @@
NEXT_PUBLIC_API_URL=https://nest-api-service.vercel.app
NEXT_PUBLIC_API_URL=http://127.0.0.1:4000
55 changes: 0 additions & 55 deletions app/dashboard/platform/columns.tsx

This file was deleted.

155 changes: 0 additions & 155 deletions app/dashboard/platform/components/DtoForm.tsx

This file was deleted.

32 changes: 0 additions & 32 deletions app/dashboard/platform/components/FormDialog.tsx

This file was deleted.

32 changes: 0 additions & 32 deletions app/dashboard/platform/page.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion app/dashboard/product/form/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const ProductForm = () => {
const id = searchParams.get("id");
const { data } = useSWR(() => `/platform/${id}`);
const { trigger } = useSWRMutation(
() => (id ? `/platform/${id}` : "/platform"),
id ? () => `/platform/${id}` : "/platform",
!!id ? updateProduct : createProduct,
{
onSuccess() {
Expand Down
2 changes: 1 addition & 1 deletion app/dashboard/product/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
} from "lucide-react";
import Image from "next/image";
import React from "react";
import { DataTable } from "../platform/components/DataTable";
import { DataTable } from "@/components/DataTable";
import { request } from "@/lib/request";
import { columns } from "./columns";
import { revalidateTag } from "next/cache";
Expand Down
2 changes: 1 addition & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { redirect } from "next/navigation";

function Home() {
redirect("/dashboard/platform");
redirect("/dashboard/product");
}

export default Home;
File renamed without changes.

0 comments on commit fe58b23

Please sign in to comment.