瀏覽代碼

补充项目说明

john 1 年之前
父節點
當前提交
33e791f74f
共有 3 個文件被更改,包括 24 次插入21 次删除
  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.
 
 ## Recommended IDE Setup
@@ -56,4 +56,8 @@ https://github.com/launchbadge/sqlx
 - https://gitee.com/seamong/tauri-plugin-sql
 
 ## 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() {
     console.log(141414, location);
-    
+
     // const config = LogicalSize;
     // console.log({ LogicalSize: new LogicalSize() });
     // console.log(window);
@@ -24,16 +24,16 @@ export default function Menu() {
     {
       label: "常用",
       child: [
+        // {
+        //   label: "文件整理",
+        //   path: "/file-sort",
+        // },
+        // {
+        //   label: "文件清理",
+        //   path: "/file-clear",
+        // },
         {
-          label: "文件整理",
-          path: "/file-sort",
-        },
-        {
-          label: "文件清理",
-          path: "/file-clear",
-        },
-        {
-          label: "重复文件",
+          label: "文件管理",
           path: "/",
         },
       ],
@@ -72,7 +72,7 @@ export default function Menu() {
                   key={childItem.label}
                   className={clsx(
                     styles.childItemLabel,
-                    active === childItem.label && styles.active
+                    active === childItem.label && styles.active,
                   )}
                   onClick={() =>
                     menuHandle(childItem.path || "", childItem.label)

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

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