Поправила url картинок
This commit is contained in:
@@ -25,7 +25,7 @@
|
|||||||
import TheHeader from "@/components/TheHeader";
|
import TheHeader from "@/components/TheHeader";
|
||||||
import TheSidebar from "@/components/TheSidebar";
|
import TheSidebar from "@/components/TheSidebar";
|
||||||
import TheNotificationProvider from "@/components/Notifications/TheNotificationProvider";
|
import TheNotificationProvider from "@/components/Notifications/TheNotificationProvider";
|
||||||
|
import { mapState } from "vuex";
|
||||||
export default {
|
export default {
|
||||||
name: "LoggedInLayout",
|
name: "LoggedInLayout",
|
||||||
components: { TheNotificationProvider, TheHeader, TheSidebar },
|
components: { TheNotificationProvider, TheHeader, TheSidebar },
|
||||||
@@ -33,10 +33,14 @@ export default {
|
|||||||
return {
|
return {
|
||||||
isOpenForm: false,
|
isOpenForm: false,
|
||||||
updatedClients: false,
|
updatedClients: false,
|
||||||
url: "https://astra-dev.dopcore.com/api/store/",
|
|
||||||
createdClientId: "",
|
createdClientId: "",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
...mapState({
|
||||||
|
url: (state) => state.imgUrl,
|
||||||
|
}),
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
openForm() {
|
openForm() {
|
||||||
this.isOpenForm = true;
|
this.isOpenForm = true;
|
||||||
|
|||||||
@@ -83,10 +83,10 @@ export default {
|
|||||||
return !this.bodyClass?.["flex-col"] && !this.expandedType;
|
return !this.bodyClass?.["flex-col"] && !this.expandedType;
|
||||||
},
|
},
|
||||||
recordingStatus() {
|
recordingStatus() {
|
||||||
const status = statuses[0].data.find(
|
const status = statuses?.[0]?.data?.find(
|
||||||
(elem) => elem.value === this.record?.status
|
(elem) => elem.value === this.record?.status
|
||||||
);
|
);
|
||||||
return status || statuses[0].data[0];
|
return status || statuses?.[0]?.data?.[0];
|
||||||
},
|
},
|
||||||
startTime() {
|
startTime() {
|
||||||
return moment.parseZone(this.record?.start);
|
return moment.parseZone(this.record?.start);
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ import BaseAvatar from "@/components/base/BaseAvatar.vue";
|
|||||||
import BaseInputDate from "@/components/base/BaseInputDate.vue";
|
import BaseInputDate from "@/components/base/BaseInputDate.vue";
|
||||||
import BaseInputTime from "@/components/base/BaseInputTime.vue";
|
import BaseInputTime from "@/components/base/BaseInputTime.vue";
|
||||||
import * as moment from "moment/moment";
|
import * as moment from "moment/moment";
|
||||||
import { mapGetters, mapActions } from "vuex";
|
import { mapGetters, mapActions, mapState } from "vuex";
|
||||||
import BaseButton from "@/components/base/BaseButton.vue";
|
import BaseButton from "@/components/base/BaseButton.vue";
|
||||||
export default {
|
export default {
|
||||||
name: "MedicalProtocolCreateModal",
|
name: "MedicalProtocolCreateModal",
|
||||||
@@ -67,10 +67,12 @@ export default {
|
|||||||
date: null,
|
date: null,
|
||||||
startTime: null,
|
startTime: null,
|
||||||
},
|
},
|
||||||
url: "https://astra-dev.dopcore.com/api/store/",
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
...mapState({
|
||||||
|
url: (state) => state.imgUrl,
|
||||||
|
}),
|
||||||
...mapGetters({
|
...mapGetters({
|
||||||
userData: "getUserData",
|
userData: "getUserData",
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import calendar from "./modules/calendar";
|
|||||||
export default createStore({
|
export default createStore({
|
||||||
state: {
|
state: {
|
||||||
url: "https://astra-dev.dopcore.com",
|
url: "https://astra-dev.dopcore.com",
|
||||||
|
imgUrl: "https://astra-dev.dopcore.com/api/store/",
|
||||||
routingHistory: window.history,
|
routingHistory: window.history,
|
||||||
userData: {},
|
userData: {},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user