Introduced ProfileStore
Corrected All Links to DataStore
This commit is contained in:
@@ -4,6 +4,7 @@ import dayjs from "dayjs";
|
||||
const route = useRoute()
|
||||
const router = useRouter()
|
||||
const dataStore = useDataStore()
|
||||
const profileStore = useProfileStore()
|
||||
|
||||
const mode = ref(route.params.mode || "show")
|
||||
|
||||
@@ -13,7 +14,7 @@ const itemInfo = ref({
|
||||
})
|
||||
const oldItemInfo = ref({})
|
||||
|
||||
const resourceToAdd = ref(dataStore.activeProfile.id)
|
||||
const resourceToAdd = ref(profileStore.activeProfile.id)
|
||||
/*const mapResources = () => {
|
||||
console.log(itemInfo.value.resources)
|
||||
itemInfo.value.resources.map(resource => {
|
||||
|
||||
Reference in New Issue
Block a user