diff --git a/public/test.view b/public/test.view index f738199..323c7a6 100644 Binary files a/public/test.view and b/public/test.view differ diff --git a/src/api/index.js b/src/api/index.js index 19b7f4e..757ce0f 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -20,7 +20,7 @@ export async function saveView(originVcdFile, originVcdViewFile, payload) { return; } if (mode === 'debug') { - const res = await axios.post('http://localhost:3000/save-view', { originVcdFile, originVcdViewFile, payload }); + const res = await axios.post('http://localhost:3000/vcd/save-view', { originVcdFile, originVcdViewFile, payload }); // const res = await axios.get('http://localhost:3000'); console.log(res); } else { @@ -39,7 +39,7 @@ export async function saveView(originVcdFile, originVcdViewFile, payload) { */ export async function saveViewAs(originVcdFile, originVcdViewFile, payload) { if (mode === 'debug') { - const res = await axios.post('http://localhost:3000/save-view-as', { originVcdFile, originVcdViewFile, payload }); + const res = await axios.post('http://localhost:3000/vcd/save-view-as', { originVcdFile, originVcdViewFile, payload }); if (res.data && res.data.viewPath) { const newVcdViewPath = res.data.viewPath; globalLookup.originVcdViewFile = newVcdViewPath; @@ -54,7 +54,7 @@ export async function saveViewAs(originVcdFile, originVcdViewFile, payload) { export async function loadView(originVcdFile) { if (mode === 'debug') { - const res = await axios.post('http://localhost:3000/load-view', { originVcdFile }); + const res = await axios.post('http://localhost:3000/vcd/load-view', { originVcdFile }); if (res.data && res.data.recoverJson && res.data.viewPath) { globalLookup.originVcdViewFile = res.data.viewPath; return res.data.recoverJson; diff --git a/src/components/toolbar/index.vue b/src/components/toolbar/index.vue index 2c4d219..a2fccc7 100644 --- a/src/components/toolbar/index.vue +++ b/src/components/toolbar/index.vue @@ -14,7 +14,6 @@ -