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