open corresponding file when coming from notification click
This commit is contained in:
parent
e6483070ad
commit
cd1f065962
2 changed files with 49 additions and 0 deletions
|
|
@ -172,12 +172,25 @@ import Header from "../components/project/Header.vue";
|
|||
import PdfViewer from "../components/project/client-brief/PdfViewer.vue";
|
||||
import VirtualSample from "../components/project/VirtualSample.vue";
|
||||
import { ref } from "vue";
|
||||
import { useRoute } from "vue-router";
|
||||
|
||||
const { page } = storeToRefs(usePageStore());
|
||||
const user = useUserStore().user;
|
||||
|
||||
const file = ref(null);
|
||||
|
||||
const route = useRoute();
|
||||
|
||||
if (route.query.fileUuid) {
|
||||
page.value.steps.forEach((step) => {
|
||||
step.files.forEach((item) => {
|
||||
if (item.uuid === route.query.fileUuid) {
|
||||
file.value = item;
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function setStepStatus(stepName) {
|
||||
const stepIndex = steps.indexOf(stepName);
|
||||
const currentIndex = steps.indexOf(currentStep.value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue