huangxw 10 months ago
parent
commit
cab5669d72
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/views/cdt/menus/form/index.vue

+ 3 - 1
src/views/cdt/menus/form/index.vue

@@ -367,6 +367,8 @@ const getItems = async () => {
 };
 onMounted(() => {
     getDiscount();
-    getDetail();
+    if (query?.id) {
+        getDetail();
+    }
 });
 </script>