feat: 网元安装步骤页面
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user