تغییرات

This commit is contained in:
Mehdi104797 2025-05-01 13:23:46 +03:30
parent 1c9ea2ed11
commit cc55ac6684
2 changed files with 19 additions and 4 deletions

View File

@ -856,10 +856,24 @@ export default {
}, },
}, },
components: { components: {
TaskForm: () => import("@task/components/TaskForm"), TaskForm: defineAsyncComponent(() =>
HoursForm: () => import("@task/components/HoursForm"), import("@task/components/TaskForm")
),
HoursForm: defineAsyncComponent(() =>
import("@task/components/HoursForm")
),
Multiselect: defineAsyncComponent(() =>
import("vue-multiselect")
),
Multiselect: () => import("vue-multiselect"),
// TaskForm: () => import("@task/components/TaskForm"),
// HoursForm: () => import("@task/components/HoursForm"),
// Multiselect: () => import("vue-multiselect"),
// datePicker: VuePersianDatetimePicker, // datePicker: VuePersianDatetimePicker,
}, },
}; };

View File

@ -192,10 +192,11 @@ export default {
beforeMount() { beforeMount() {
// this.httpService = new HttpService(this.taskMicroServiceName); // this.httpService = new HttpService(this.taskMicroServiceName);
this.httpService = useNuxtApp()["$http"]; this.httpService = useNuxtApp()["$http"];
const { $eventBus } = useNuxtApp();
this.activeUserId = this.currentUser.user_id; this.activeUserId = this.currentUser.user_id;
// event fired from MainSection.vue. // event fired from MainSection.vue.
this.$root.$on("request-based-on-new-user-data", (userId) => { $eventBus.on("request-based-on-new-user-data", (userId) => {
this.activeUserId = userId; this.activeUserId = userId;
this.getWorkingHoursInformation(); this.getWorkingHoursInformation();
}); });