|
|
@@ -189,14 +189,12 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item :label="t('命令模板') + ':'" prop="commandTemplate">
|
|
|
- <div class="code-editor-wrapper">
|
|
|
- <CodeEditor
|
|
|
- v-model="form.commandTemplate"
|
|
|
- language="bash"
|
|
|
- height="400px"
|
|
|
- placeholder="#!/bin/bash # FFmpeg 命令模板,可使用 {RTSP_URL} 等变量"
|
|
|
- />
|
|
|
- </div>
|
|
|
+ <CodeEditor
|
|
|
+ v-model="form.commandTemplate"
|
|
|
+ language="bash"
|
|
|
+ height="400px"
|
|
|
+ placeholder="#!/bin/bash # FFmpeg 命令模板,可使用 {RTSP_URL} 等变量"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
@@ -436,12 +434,14 @@
|
|
|
|
|
|
<!-- 命令模板查看/编辑抽屉 -->
|
|
|
<el-drawer v-model="commandDialogVisible" :title="t('命令模板')" direction="rtl" size="800px" destroy-on-close>
|
|
|
- <CodeEditor
|
|
|
- v-model="currentCommandTemplate"
|
|
|
- language="bash"
|
|
|
- height="450px"
|
|
|
- placeholder="#!/bin/bash # FFmpeg 推流命令模板"
|
|
|
- />
|
|
|
+ <div class="command-template-container">
|
|
|
+ <CodeEditor
|
|
|
+ v-model="currentCommandTemplate"
|
|
|
+ language="bash"
|
|
|
+ height="450px"
|
|
|
+ placeholder="#!/bin/bash # FFmpeg 推流命令模板"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
<template #footer>
|
|
|
<div class="drawer-footer">
|
|
|
<el-button @click="commandDialogVisible = false">{{ t('取消') }}</el-button>
|
|
|
@@ -1297,7 +1297,8 @@ onMounted(async () => {
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
-.code-editor-wrapper {
|
|
|
+.command-template-container {
|
|
|
+ padding: 0 20px;
|
|
|
}
|
|
|
|
|
|
.search-form {
|