17 lines
320 B
TypeScript
17 lines
320 B
TypeScript
|
|
import { defineStore } from 'pinia';
|
|
import api from './api';
|
|
|
|
export const useAppStore = defineStore('zero.apps', {
|
|
state: () => ({
|
|
applications: []
|
|
}),
|
|
|
|
actions: {
|
|
async setup()
|
|
{
|
|
const response = await api.getByQuery({ pageSize: 1000 });
|
|
this.applications = response.data;
|
|
}
|
|
}
|
|
}); |