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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user