mirror of
https://github.com/EvolutionAPI/evolution-manager.git
synced 2025-12-23 21:07:43 -06:00
add path api to CLI
This commit is contained in:
@@ -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: [
|
||||
{
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user