This commit is contained in:
2025-07-16 21:52:57 +03:00
parent b51a472738
commit 3e43efc70d
31 changed files with 801 additions and 391 deletions

View File

@@ -14,6 +14,7 @@ export const useCompaniesStore = defineStore('companies', () => {
const currentProjectId = computed(() => projectsStore.currentProjectId)
async function init () {
reset()
const { data }= await api.get('/project/' + currentProjectId.value + '/company')
const companiesAPI = data.data
companies.value.push(...(companiesAPI.sort((a: Company, b: Company) => (a.id - b.id))))