feat: 网元安装步骤页面

This commit is contained in:
TsMask
2024-04-01 15:58:06 +08:00
parent 3d40e0856e
commit 00e8b7acbb
6 changed files with 749 additions and 419 deletions

View File

@@ -203,24 +203,15 @@ function fnNeInfo() {
}
onMounted(() => {
// 读取上一步的主机信息
const statePerv = stepState.states[stepState.current - 1];
modalState.from.ip = statePerv.from.addr;
Object.assign(modalState.from.hosts[0], statePerv.from);
// 读取步骤:环境检查
const stepPrevFrom = stepState.states[0].from;
modalState.from.ip = stepPrevFrom.addr;
Object.assign(modalState.from.hosts[0], stepPrevFrom);
Object.assign(modalState.from.hosts[1], {
addr: modalState.from.ip,
addr: stepPrevFrom.addr,
user: 'admin',
password: 'admin',
});
// 状态还原
const state = stepState.states[stepState.current];
if (state) {
if (state.from) {
const from = toRaw(state.from);
Object.assign(modalState.from, from);
}
}
});
</script>