تغییرات
This commit is contained in:
parent
1c9ea2ed11
commit
cc55ac6684
|
@ -856,10 +856,24 @@ export default {
|
|||
},
|
||||
},
|
||||
components: {
|
||||
TaskForm: () => import("@task/components/TaskForm"),
|
||||
HoursForm: () => import("@task/components/HoursForm"),
|
||||
TaskForm: defineAsyncComponent(() =>
|
||||
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,
|
||||
},
|
||||
};
|
||||
|
|
|
@ -192,10 +192,11 @@ export default {
|
|||
beforeMount() {
|
||||
// this.httpService = new HttpService(this.taskMicroServiceName);
|
||||
this.httpService = useNuxtApp()["$http"];
|
||||
const { $eventBus } = useNuxtApp();
|
||||
|
||||
this.activeUserId = this.currentUser.user_id;
|
||||
// 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.getWorkingHoursInformation();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user