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