From db7ae7a85c10f3b863f78a6b16b1f6c562e372e3 Mon Sep 17 00:00:00 2001 From: Kirigaya <1193466151@qq.com> Date: Fri, 3 Jan 2025 19:09:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20api=20=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E5=BC=80=E5=8F=91=E5=90=8E=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/test.view | Bin 2665 -> 2669 bytes src/api/index.js | 6 +++--- src/components/toolbar/index.vue | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/public/test.view b/public/test.view index f7381997aa0fb901b1db36dad4862b9c1e5b9d13..323c7a63d6924ac4bdb883c6a6e900d60fbd7465 100644 GIT binary patch delta 58 zcmaDU@>YZ~cO#=RhjJw&1A{I!OFm}*_|Vhkx7kt I@+{8F0FF5g)Bpeg 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 @@ -