change notifications structure from object to array
This commit is contained in:
parent
0d25794b87
commit
20824983a6
8 changed files with 64 additions and 50 deletions
|
|
@ -179,17 +179,18 @@ const user = useUserStore().user;
|
|||
|
||||
const file = ref(null);
|
||||
|
||||
const route = useRoute();
|
||||
// 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;
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
// if (route.query.notificationId) {
|
||||
// page.value.steps.forEach((step) => {
|
||||
// const srcNotification = user.notifications;
|
||||
// step.files.forEach((item) => {
|
||||
// if (item.uuid === route.query.notificationId) {
|
||||
// file.value = item;
|
||||
// }
|
||||
// });
|
||||
// });
|
||||
// }
|
||||
|
||||
function setStepStatus(stepName) {
|
||||
const stepIndex = steps.indexOf(stepName);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue