redesign user data api
This commit is contained in:
parent
f132049948
commit
44361e614d
17 changed files with 80 additions and 52 deletions
|
|
@ -14,8 +14,8 @@ export const useProjectsStore = defineStore("projects", () => {
|
|||
|
||||
const api = useApiStore();
|
||||
api
|
||||
.fetchPageData("projects")
|
||||
.then((json) => (projects.value = json.children));
|
||||
.fetchData("projects")
|
||||
.then((json) => (projects.value = json.page.children));
|
||||
|
||||
return { projects, currentProjects, archivedProjects };
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue