2 Commits
Author SHA1 Message Date
Weixuan Fu acaa2e4c35 add some logging for workflow restore 2024-08-04 17:50:33 +08:00
Weixuan Fu 99126eea03 add base ./ to deal with comfyui on subpaths 2024-08-04 17:44:03 +08:00
2 changed files with 6 additions and 0 deletions
@@ -67,8 +67,13 @@ export default function AppIsDirtyEventListener() {
return;
}
const id = app.graph.extra?.[COMFYSPACE_TRACKING_FIELD_NAME]?.id;
console.log("🦄 Restoring workflow... id=", id);
if (id) {
const flow = await workflowsTable?.get(id);
console.log(
"🦄 Restored workflow",
flow?.parentFolderID + "/" + flow?.name,
);
flow && setCurFlowIDAndName(flow);
if (
+1
View File
@@ -22,6 +22,7 @@ const rewriteImportPlugin = ({ isDev }) => {
// https://vitejs.dev/config/
export default defineConfig(({ mode }) => ({
base: "./",
envDir: ".",
build: {
watch: {