Browse Source

补充项目说明

john 1 year ago
parent
commit
33e791f74f
3 changed files with 24 additions and 21 deletions
  1. 7 3
      README.md
  2. 11 11
      src/components/Menu/Menu.tsx
  3. 6 7
      src/pages/DuplicateFile/DuplicateFile.tsx

+ 7 - 3
README.md

@@ -1,5 +1,5 @@
-# Tauri + React + Typescript
-
+## 项目说明
+ - 1、Tauri + React + Typescript
 This template should help get you started developing with Tauri, React and Typescript in Vite.
 This template should help get you started developing with Tauri, React and Typescript in Vite.
 
 
 ## Recommended IDE Setup
 ## Recommended IDE Setup
@@ -56,4 +56,8 @@ https://github.com/launchbadge/sqlx
 - https://gitee.com/seamong/tauri-plugin-sql
 - https://gitee.com/seamong/tauri-plugin-sql
 
 
 ## 1.1.0 更新说明
 ## 1.1.0 更新说明
-移除项目中的所有冗余代码
+移除项目中的所有冗余代码
+
+## 问题解答
+- 问题1.macOS 无法使用本软件, 移除macOS系统对指定软件的安全验证
+- 问题1解答: sudo xattr -dr com.apple.quarantine /Applications/<本软件名称>

+ 11 - 11
src/components/Menu/Menu.tsx

@@ -14,7 +14,7 @@ export default function Menu() {
 
 
   async function initMenu() {
   async function initMenu() {
     console.log(141414, location);
     console.log(141414, location);
-    
+
     // const config = LogicalSize;
     // const config = LogicalSize;
     // console.log({ LogicalSize: new LogicalSize() });
     // console.log({ LogicalSize: new LogicalSize() });
     // console.log(window);
     // console.log(window);
@@ -24,16 +24,16 @@ export default function Menu() {
     {
     {
       label: "常用",
       label: "常用",
       child: [
       child: [
+        // {
+        //   label: "文件整理",
+        //   path: "/file-sort",
+        // },
+        // {
+        //   label: "文件清理",
+        //   path: "/file-clear",
+        // },
         {
         {
-          label: "文件整理",
-          path: "/file-sort",
-        },
-        {
-          label: "文件清理",
-          path: "/file-clear",
-        },
-        {
-          label: "重复文件",
+          label: "文件管理",
           path: "/",
           path: "/",
         },
         },
       ],
       ],
@@ -72,7 +72,7 @@ export default function Menu() {
                   key={childItem.label}
                   key={childItem.label}
                   className={clsx(
                   className={clsx(
                     styles.childItemLabel,
                     styles.childItemLabel,
-                    active === childItem.label && styles.active
+                    active === childItem.label && styles.active,
                   )}
                   )}
                   onClick={() =>
                   onClick={() =>
                     menuHandle(childItem.path || "", childItem.label)
                     menuHandle(childItem.path || "", childItem.label)

+ 6 - 7
src/pages/DuplicateFile/DuplicateFile.tsx

@@ -59,7 +59,10 @@ export default function DuplicateFile() {
       key: "id",
       key: "id",
       width: 30,
       width: 30,
       render: (text: string, record: { id?: number }) => (
       render: (text: string, record: { id?: number }) => (
-        <CopyText width="30px" color="#333" name={record.id || ""}></CopyText>
+        <Button onClick={() => openModal(record)} type={"link"}>
+          {record.id}
+        </Button>
+        // <CopyText width="30px" color="#333" name={record.id || ""}></CopyText>
       ),
       ),
     },
     },
     {
     {
@@ -109,16 +112,12 @@ export default function DuplicateFile() {
       width: 220,
       width: 220,
       render: (text: string, record: FileInfoType) => (
       render: (text: string, record: FileInfoType) => (
         <Space size="middle" style={{ width: "220px" }} align="baseline">
         <Space size="middle" style={{ width: "220px" }} align="baseline">
-          <Button onClick={() => openModal(record)} type="default">
-            修改
-          </Button>
           <Button
           <Button
             type="primary"
             type="primary"
             onClick={() => calculateDuplicateFiles(record)}
             onClick={() => calculateDuplicateFiles(record)}
           >
           >
-            运行
+            管理
           </Button>
           </Button>
-
           <Popconfirm
           <Popconfirm
             title="Delete the task"
             title="Delete the task"
             description="Are you sure to delete this task?"
             description="Are you sure to delete this task?"
@@ -127,7 +126,7 @@ export default function DuplicateFile() {
             cancelText="No"
             cancelText="No"
           >
           >
             <Button type="primary" danger>
             <Button type="primary" danger>
-              
+              
             </Button>
             </Button>
           </Popconfirm>
           </Popconfirm>
         </Space>
         </Space>