|
@@ -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>
|