fix: fix Vue template parsing errors in ReadingProgress and TerminalHandsOn components

- Remove special characters from comment in ReadingProgress.vue
- Fix multi-line @click handler in TerminalHandsOn.vue
- Add simplified network components (NetworkLayersSimple, TcpUdpSimple)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
sanbuphy
2026-02-19 10:54:31 +08:00
parent b1948225f4
commit 8078ee201c
4 changed files with 382 additions and 7 deletions
@@ -69,12 +69,7 @@
<button
v-else-if="currentTask.expectedCmd"
class="copy-btn"
@click="
copyCommand(
currentTask.expectedCmd[currentOS] ||
currentTask.expectedCmd.common
)
"
@click="copyCurrentTaskCommand"
>
复制命令
</button>
@@ -441,6 +436,11 @@ const copyCommand = (cmd) => {
focusInput()
}
const copyCurrentTaskCommand = () => {
const cmd = currentTask.value.expectedCmd[currentOS.value] || currentTask.value.expectedCmd.common
copyCommand(cmd)
}
const focusInput = () => {
if (cmdInput.value) {
cmdInput.value.focus()