huangxw hace 10 meses
padre
commit
cab5669d72
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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>