From 2f8a257efd2b64dc40666b0d332edb7824a9768d Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: 星期日, 27 四月 2025 09:58:29 +0800
Subject: [PATCH] remove all semicolons

---
 src/views/system/menu/index.vue |  128 +++++++++++++++++++++---------------------
 1 files changed, 64 insertions(+), 64 deletions(-)

diff --git a/src/views/system/menu/index.vue b/src/views/system/menu/index.vue
index 2d15eec..78c49cf 100644
--- a/src/views/system/menu/index.vue
+++ b/src/views/system/menu/index.vue
@@ -289,22 +289,22 @@
 </template>
 
 <script setup name="Menu">
-import { addMenu, delMenu, getMenu, listMenu, updateMenu } from "@/api/system/menu";
-import SvgIcon from "@/components/SvgIcon";
-import IconSelect from "@/components/IconSelect";
+import { addMenu, delMenu, getMenu, listMenu, updateMenu } from "@/api/system/menu"
+import SvgIcon from "@/components/SvgIcon"
+import IconSelect from "@/components/IconSelect"
 
-const { proxy } = getCurrentInstance();
-const { sys_show_hide, sys_normal_disable } = proxy.useDict("sys_show_hide", "sys_normal_disable");
+const { proxy } = getCurrentInstance()
+const { sys_show_hide, sys_normal_disable } = proxy.useDict("sys_show_hide", "sys_normal_disable")
 
-const menuList = ref([]);
-const open = ref(false);
-const loading = ref(true);
-const showSearch = ref(true);
-const title = ref("");
-const menuOptions = ref([]);
-const isExpandAll = ref(false);
-const refreshTable = ref(true);
-const iconSelectRef = ref(null);
+const menuList = ref([])
+const open = ref(false)
+const loading = ref(true)
+const showSearch = ref(true)
+const title = ref("")
+const menuOptions = ref([])
+const isExpandAll = ref(false)
+const refreshTable = ref(true)
+const iconSelectRef = ref(null)
 
 const data = reactive({
   form: {},
@@ -317,33 +317,33 @@
     orderNum: [{ required: true, message: "鑿滃崟椤哄簭涓嶈兘涓虹┖", trigger: "blur" }],
     path: [{ required: true, message: "璺敱鍦板潃涓嶈兘涓虹┖", trigger: "blur" }]
   },
-});
+})
 
-const { queryParams, form, rules } = toRefs(data);
+const { queryParams, form, rules } = toRefs(data)
 
 /** 鏌ヨ鑿滃崟鍒楄〃 */
 function getList() {
-  loading.value = true;
+  loading.value = true
   listMenu(queryParams.value).then(response => {
-    menuList.value = proxy.handleTree(response.data, "menuId");
-    loading.value = false;
-  });
+    menuList.value = proxy.handleTree(response.data, "menuId")
+    loading.value = false
+  })
 }
 
 /** 鏌ヨ鑿滃崟涓嬫媺鏍戠粨鏋� */
 function getTreeselect() {
-  menuOptions.value = [];
+  menuOptions.value = []
   listMenu().then(response => {
-    const menu = { menuId: 0, menuName: "涓荤被鐩�", children: [] };
-    menu.children = proxy.handleTree(response.data, "menuId");
-    menuOptions.value.push(menu);
-  });
+    const menu = { menuId: 0, menuName: "涓荤被鐩�", children: [] }
+    menu.children = proxy.handleTree(response.data, "menuId")
+    menuOptions.value.push(menu)
+  })
 }
 
 /** 鍙栨秷鎸夐挳 */
 function cancel() {
-  open.value = false;
-  reset();
+  open.value = false
+  reset()
 }
 
 /** 琛ㄥ崟閲嶇疆 */
@@ -359,62 +359,62 @@
     isCache: "0",
     visible: "0",
     status: "0"
-  };
-  proxy.resetForm("menuRef");
+  }
+  proxy.resetForm("menuRef")
 }
 
 /** 灞曠ず涓嬫媺鍥炬爣 */
 function showSelectIcon() {
-  iconSelectRef.value.reset();
+  iconSelectRef.value.reset()
 }
 
 /** 閫夋嫨鍥炬爣 */
 function selected(name) {
-  form.value.icon = name;
+  form.value.icon = name
 }
 
 /** 鎼滅储鎸夐挳鎿嶄綔 */
 function handleQuery() {
-  getList();
+  getList()
 }
 
 /** 閲嶇疆鎸夐挳鎿嶄綔 */
 function resetQuery() {
-  proxy.resetForm("queryRef");
-  handleQuery();
+  proxy.resetForm("queryRef")
+  handleQuery()
 }
 
 /** 鏂板鎸夐挳鎿嶄綔 */
 function handleAdd(row) {
-  reset();
-  getTreeselect();
+  reset()
+  getTreeselect()
   if (row != null && row.menuId) {
-    form.value.parentId = row.menuId;
+    form.value.parentId = row.menuId
   } else {
-    form.value.parentId = 0;
+    form.value.parentId = 0
   }
-  open.value = true;
-  title.value = "娣诲姞鑿滃崟";
+  open.value = true
+  title.value = "娣诲姞鑿滃崟"
 }
 
 /** 灞曞紑/鎶樺彔鎿嶄綔 */
 function toggleExpandAll() {
-  refreshTable.value = false;
-  isExpandAll.value = !isExpandAll.value;
+  refreshTable.value = false
+  isExpandAll.value = !isExpandAll.value
   nextTick(() => {
-    refreshTable.value = true;
-  });
+    refreshTable.value = true
+  })
 }
 
 /** 淇敼鎸夐挳鎿嶄綔 */
 async function handleUpdate(row) {
-  reset();
-  await getTreeselect();
+  reset()
+  await getTreeselect()
   getMenu(row.menuId).then(response => {
-    form.value = response.data;
-    open.value = true;
-    title.value = "淇敼鑿滃崟";
-  });
+    form.value = response.data
+    open.value = true
+    title.value = "淇敼鑿滃崟"
+  })
 }
 
 /** 鎻愪氦鎸夐挳 */
@@ -423,30 +423,30 @@
     if (valid) {
       if (form.value.menuId != undefined) {
         updateMenu(form.value).then(response => {
-          proxy.$modal.msgSuccess("淇敼鎴愬姛");
-          open.value = false;
-          getList();
-        });
+          proxy.$modal.msgSuccess("淇敼鎴愬姛")
+          open.value = false
+          getList()
+        })
       } else {
         addMenu(form.value).then(response => {
-          proxy.$modal.msgSuccess("鏂板鎴愬姛");
-          open.value = false;
-          getList();
-        });
+          proxy.$modal.msgSuccess("鏂板鎴愬姛")
+          open.value = false
+          getList()
+        })
       }
     }
-  });
+  })
 }
 
 /** 鍒犻櫎鎸夐挳鎿嶄綔 */
 function handleDelete(row) {
   proxy.$modal.confirm('鏄惁纭鍒犻櫎鍚嶇О涓�"' + row.menuName + '"鐨勬暟鎹」?').then(function() {
-    return delMenu(row.menuId);
+    return delMenu(row.menuId)
   }).then(() => {
-    getList();
-    proxy.$modal.msgSuccess("鍒犻櫎鎴愬姛");
-  }).catch(() => {});
+    getList()
+    proxy.$modal.msgSuccess("鍒犻櫎鎴愬姛")
+  }).catch(() => {})
 }
 
-getList();
+getList()
 </script>

--
Gitblit v1.9.3