+ :key="route.meta.groups ? route.meta.groups : route.path"/>
-
+
@@ -17,8 +17,8 @@
diff --git a/app/wails/frontend/src/router/router.js b/app/wails/frontend/src/router/router.js
index ead6b7f..b6d8acf 100644
--- a/app/wails/frontend/src/router/router.js
+++ b/app/wails/frontend/src/router/router.js
@@ -11,27 +11,31 @@ const routes = [
meta: {
title: "首页",
keepAlive: true,
+ groups: "/"
},
children: [
{
path: "/home",
- component: ()=>import("src/views/home/Home.vue"),
+ component: ()=>import("src/views/tabs/home/Home.vue"),
meta: {
- title: "首页"
+ title: "首页",
+ groups: "/"
}
},
{
path: "environment",
- component:()=>import("src/views/environment/index.vue"),
+ component:()=>import("src/views/tabs/environment/index.vue"),
meta:{
- title: "环境变量"
+ title: "环境变量",
+ groups: "/"
}
},
{
path: "/test",
- component: ()=>import("src/views/home/Test.vue"),
+ component: ()=>import("src/views/tabs/home/Test.vue"),
meta: {
- title: "测试"
+ title: "测试",
+ groups: "/"
}
}
]
diff --git a/app/wails/frontend/src/store/globalTabs.js b/app/wails/frontend/src/store/globalTabs.js
index c901621..12c724b 100644
--- a/app/wails/frontend/src/store/globalTabs.js
+++ b/app/wails/frontend/src/store/globalTabs.js
@@ -8,7 +8,8 @@ export const useGlobalTabs = defineStore("globalTabs",{
actions:{
addTab(tab){
let index = this.tabs.findIndex(item => item.name === tab.name)
- if( index === -1){
+ console.log("addTab", tab, index)
+ if( index === -1 ){
this.tabs.push(tab)
} else {
this.tabs[index] = Object.assign(this.tabs[index],tab)
diff --git a/app/wails/frontend/src/views/environment/index.vue b/app/wails/frontend/src/views/environment/index.vue
deleted file mode 100644
index 61fce6a..0000000
--- a/app/wails/frontend/src/views/environment/index.vue
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-