ADD: Actualizar metodo api.resource por api.catalog
This commit is contained in:
parent
6b7bccc500
commit
c8bab712d3
1291
package-lock.json
generated
1291
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -2,7 +2,7 @@
|
||||
"name": "notsoweb.frontend",
|
||||
"copyright": "Notsoweb Software Inc.",
|
||||
"private": true,
|
||||
"version": "0.9.9",
|
||||
"version": "0.9.10",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@ -10,7 +10,7 @@ import Notify from '@Plugins/Notify'
|
||||
import { bootPermissions, bootRoles } from '@Plugins/RolePermission';
|
||||
import TailwindScreen from '@Plugins/TailwindScreen'
|
||||
import { pagePlugin } from '@Services/Page';
|
||||
import { reloadApp, view } from '@Services/Page';
|
||||
import { defineApp, reloadApp, view } from '@Services/Page';
|
||||
import { apiURL } from '@Services/Api';
|
||||
|
||||
import App from '@Components/App.vue'
|
||||
@ -32,8 +32,10 @@ async function boot() {
|
||||
// Iniciar rutas
|
||||
try {
|
||||
const routes = await axios.get(apiURL('resources/routes'));
|
||||
const appData = await axios.get(apiURL('resources/app'));
|
||||
|
||||
window.Ziggy = routes.data;
|
||||
defineApp(appData.data);
|
||||
window.route = useRoute();
|
||||
window.view = view;
|
||||
initRoutes = true;
|
||||
|
||||
@ -93,6 +93,14 @@ const changelogs = [
|
||||
],
|
||||
date: '2025-03-13'
|
||||
},
|
||||
{
|
||||
version: '0.9.10',
|
||||
details: [
|
||||
'ADD: Se actualizo el método api.resource por api.catalog para obtener catálogos del backend.',
|
||||
'UPDATE: Actualización de dependencias.'
|
||||
],
|
||||
date: '2025-05-23'
|
||||
}
|
||||
]
|
||||
</script>
|
||||
|
||||
|
||||
@ -216,8 +216,8 @@ const api = {
|
||||
options
|
||||
})
|
||||
},
|
||||
resource(resources, options) {
|
||||
this.post(apiURL('resources/get'), {
|
||||
catalog(resources, options) {
|
||||
this.post(apiURL('catalogs/get'), {
|
||||
...options,
|
||||
data: resources
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user