diff --git a/package-lock.json b/package-lock.json index 9001ba9..575eb1c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -65,6 +65,7 @@ "vue3-datepicker": "^0.4.0", "vue3-google-map": "^0.18.0", "vue3-persian-datetime-picker": "^1.2.2", + "vue3-select-component": "^0.11.3", "vue3-select2-component": "^0.1.7", "vue3-toastify": "^0.2.5", "vuex": "^4.1.0", @@ -13697,6 +13698,15 @@ "moment-jalaali": "^0.9.4" } }, + "node_modules/vue3-select-component": { + "version": "0.11.3", + "resolved": "https://registry.npmjs.org/vue3-select-component/-/vue3-select-component-0.11.3.tgz", + "integrity": "sha512-Tw2iBpwONIhasPm3UrQ9o6bvUWPhAVPHGiYtGB0e9nXLcqESDx5LxG3k4+55n9FF0jFoKRji1UdCNt1dsJkxbw==", + "license": "MIT", + "peerDependencies": { + "vue": "^3.5.0" + } + }, "node_modules/vue3-select2-component": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/vue3-select2-component/-/vue3-select2-component-0.1.7.tgz", diff --git a/package.json b/package.json index af77fb1..28d7cc9 100644 --- a/package.json +++ b/package.json @@ -65,6 +65,7 @@ "vue3-datepicker": "^0.4.0", "vue3-google-map": "^0.18.0", "vue3-persian-datetime-picker": "^1.2.2", + "vue3-select-component": "^0.11.3", "vue3-select2-component": "^0.1.7", "vue3-toastify": "^0.2.5", "vuex": "^4.1.0", diff --git a/src/components/modals/addUser.vue b/src/components/modals/addUser.vue index 4038055..74c2b5d 100644 --- a/src/components/modals/addUser.vue +++ b/src/components/modals/addUser.vue @@ -209,8 +209,8 @@ export default { }, 500); }) .catch((error) => { - console.error(error); - toast.error("!افزودن کاربر با مشکل مواجه شد", { + console.error(error.response.data.message); + toast.error(`${error.response.data.message}` , { position: "top-right", autoClose: 1000, }); diff --git a/src/components/modals/attribute/editAttribute.vue b/src/components/modals/attribute/editAttribute.vue index e118fcb..005fc9c 100644 --- a/src/components/modals/attribute/editAttribute.vue +++ b/src/components/modals/attribute/editAttribute.vue @@ -196,7 +196,7 @@ export default { }) .catch((error) => { console.error(error); - toast.success("!مشکلی در ویرایش ویژگی پیش آمد", { + toast.error("!مشکلی در ویرایش ویژگی پیش آمد", { position: "top-right", autoClose: 1000, }); diff --git a/src/components/modals/commonModals/showDescription.vue b/src/components/modals/commonModals/showDescription.vue index f1af56f..cbc2944 100644 --- a/src/components/modals/commonModals/showDescription.vue +++ b/src/components/modals/commonModals/showDescription.vue @@ -1,13 +1,13 @@