更新 api 同步开发后端
This commit is contained in:
parent
a07ba33016
commit
db7ae7a85c
BIN
public/test.view
BIN
public/test.view
Binary file not shown.
@ -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;
|
||||
|
@ -14,7 +14,6 @@
|
||||
<CursorLocation></CursorLocation>
|
||||
 
|
||||
<ValueSearch></ValueSearch>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
Loading…
x
Reference in New Issue
Block a user