Browse Source

Merge branch 'v1.2.0-ga' of http://192.168.0.115:3000/bill/fuse-code into v1.2.0-ga

xzw 4 months ago
parent
commit
b420081834
1 changed files with 3 additions and 4 deletions
  1. 3 4
      src/views/guide/path/edit.vue

+ 3 - 4
src/views/guide/path/edit.vue

@@ -53,10 +53,9 @@ import { asyncTimeout } from "@/utils";
 
 const { all, selects, updateSelect } = selectPaths;
 
-
 const currentPath = ref<Path | null>(null);
-const emit = defineEmits<{(e: 'update:current', v: Path | null): void}>()
-watchEffect(() => emit('update:current', currentPath.value))
+const emit = defineEmits<{ (e: "update:current", v: Path | null): void }>();
+watchEffect(() => emit("update:current", currentPath.value));
 
 const leaveEdit = () => {
   currentPath.value = null;
@@ -103,7 +102,7 @@ useViewStack(autoSavePaths);
 
 defineExpose({
   add: () => {
-    edit(createPath());
+    edit();
   },
 });
 </script>