完成 load view
This commit is contained in:
parent
07ecfb9845
commit
67b008fa31
@ -79,8 +79,14 @@ export async function recoverFromInputFile(inputFile, inputViewFile) {
|
|||||||
globalLookup.originVcdFile = inputFile;
|
globalLookup.originVcdFile = inputFile;
|
||||||
// 先尝试从 inputViewFile 中寻找,如果找不到,则从同名的 .view 中寻找
|
// 先尝试从 inputViewFile 中寻找,如果找不到,则从同名的 .view 中寻找
|
||||||
const recoverJson = await attemptRecover(inputFile, inputViewFile);
|
const recoverJson = await attemptRecover(inputFile, inputViewFile);
|
||||||
|
recoverFromJson(recoverJson);
|
||||||
|
}
|
||||||
|
|
||||||
|
function recoverFromJson(recoverJson) {
|
||||||
|
if (recoverJson === undefined) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (recoverJson) {
|
|
||||||
// 加载 waves
|
// 加载 waves
|
||||||
const waves = recoverJson.waves;
|
const waves = recoverJson.waves;
|
||||||
if (waves instanceof Array && waves.length > 0) {
|
if (waves instanceof Array && waves.length > 0) {
|
||||||
@ -121,7 +127,6 @@ export async function recoverFromInputFile(inputFile, inputViewFile) {
|
|||||||
recoverConfig.rightNavIndex = rightNavIndex;
|
recoverConfig.rightNavIndex = rightNavIndex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
class PrefixNode {
|
class PrefixNode {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user