Resolved bug
This commit is contained in:
@@ -79,12 +79,14 @@ import { computed, onMounted, reactive, ref } from 'vue';
|
||||
import { useRouter } from 'vue-router';
|
||||
import { LoadingStore } from '../../stores/LoadingStore.js';
|
||||
import { UserPrefStore } from '../../stores/UserPrefStore.js';
|
||||
import { ScenarioStore } from '../../stores/ScenarioStore.js';
|
||||
|
||||
|
||||
const loadingStore = LoadingStore()
|
||||
const userPrefStore = UserPrefStore();
|
||||
const auth = useAuth();
|
||||
const user = computed(() => auth.user());
|
||||
const scenario_store = ScenarioStore();
|
||||
|
||||
|
||||
const router = useRouter()
|
||||
@@ -122,6 +124,7 @@ const user = computed(() => auth.user());
|
||||
const openProject = async (project) => {
|
||||
try {
|
||||
// Esegui l'update del progetto
|
||||
scenario_store.resetStore();
|
||||
await userPrefStore.updateSelectedProject(project);
|
||||
console.log('Progetto aggiornato e dati utente ricaricati');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user