12
This commit is contained in:
@@ -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))))
|
||||
|
||||
Reference in New Issue
Block a user