add path api to CLI

This commit is contained in:
Gabriel Pastori
2023-11-19 15:01:19 -03:00
parent e5e6e27dbc
commit f28fbfcea0
10 changed files with 207 additions and 62 deletions

View File

@@ -1,9 +1,12 @@
// Composables
import { createRouter, createWebHistory } from 'vue-router'
// import from base from vite compiler
const BASE_URL = import.meta.env.BASE_URL
const routes = [
{
path: '/',
path: BASE_URL,
component: () => import('@/layouts/default/Default.vue'),
children: [
{

View File

@@ -138,7 +138,10 @@ export default {
this.$refs.createInstanceModal.open();
},
goToInstance(instance) {
this.$router.push(`/${instance.instanceName}`);
this.$router.push({
name: "instance",
params: { id: instance.instanceName },
});
},
async deleteInstance(instanceName) {
try {