瀏覽代碼

fix: relativePath computation in config editor

0xJacky 1 周之前
父節點
當前提交
aa785aa13f
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      app/package.json
  2. 1 1
      app/src/version.json
  3. 1 1
      app/src/views/config/components/ConfigLeftPanel.vue

+ 1 - 1
app/package.json

@@ -1,7 +1,7 @@
 {
   "name": "nginx-ui-app-next",
   "type": "module",
-  "version": "2.1.15",
+  "version": "2.1.16",
   "packageManager": "pnpm@10.13.1+sha512.37ebf1a5c7a30d5fabe0c5df44ee8da4c965ca0c5af3dbab28c3a1681b70a256218d05c81c9c0dcf767ef6b8551eb5b960042b9ed4300c59242336377e01cfad",
   "scripts": {
     "dev": "vite --host",

+ 1 - 1
app/src/version.json

@@ -1 +1 @@
-{"version":"2.1.15","build_id":1,"total_build":466}
+{"version":"2.1.16","build_id":1,"total_build":467}

+ 1 - 1
app/src/views/config/components/ConfigLeftPanel.vue

@@ -47,7 +47,7 @@ const newPath = computed(() => {
   return path
 })
 
-const relativePath = computed(() => (basePath.value ? `${basePath.value}/${route.params.name}` : route.params.name) as string)
+const relativePath = computed(() => (basePath.value ? `${basePath.value}/${route.params.name.toString()}` : route.params.name.toString()))
 const breadcrumbs = useBreadcrumbs()
 
 // Use Vue 3.4+ useTemplateRef for InspectConfig component