更新 api 同步开发后端

This commit is contained in:
锦恢 2025-01-03 19:09:34 +08:00
parent a07ba33016
commit db7ae7a85c
3 changed files with 3 additions and 4 deletions

Binary file not shown.

View File

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

View File

@ -14,7 +14,6 @@
<CursorLocation></CursorLocation>
&emsp;
<ValueSearch></ValueSearch>
</div>
</div>
</template>