refactor(instance): migrate from name-based to ID-based instance management

feat(instanceDetail): add instance status display and restart && stop/start control

- Change instance identification from name to ID in API endpoints and routes
- Add instance status management functionality with start/stop/restart
- Implement user type checks for instance operations
- Update UI to reflect instance status changes
- Remove completed TODO notes for implemented APIs
This commit is contained in:
2026-03-24 12:36:21 +08:00
parent 5b7c866eb3
commit 7fdf62da7a
5 changed files with 241 additions and 49 deletions

View File

@@ -21,7 +21,7 @@ const routes = [
component: () => import('../views/Instances.vue')
},
{
path: 'instances/:name',
path: 'instances/:id',
name: 'InstanceDetail',
component: () => import('../views/InstanceDetail.vue')
},