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