|
|
@@ -31,7 +31,7 @@
|
|
|
</template>
|
|
|
<script lang="ts" setup >
|
|
|
import { RtsController } from '@/controller/rts'
|
|
|
-import { reactive, ref, watch } from 'vue'
|
|
|
+import { onMounted, reactive, ref, watch } from 'vue'
|
|
|
import { CodeMirrorTsx } from '@/components/CodeMirror/index'
|
|
|
import { useScheduler } from '@/hooks'
|
|
|
import { Empty } from 'ant-design-vue'
|
|
|
@@ -45,7 +45,7 @@ const state = reactive<{
|
|
|
bodyJson: string
|
|
|
loading: boolean
|
|
|
}>({
|
|
|
- name: '',
|
|
|
+ name: 'RTSP',
|
|
|
bodyJson: '',
|
|
|
loading: false
|
|
|
})
|
|
|
@@ -68,6 +68,10 @@ const getProtocol = async () => {
|
|
|
start()
|
|
|
state.bodyJson = JSON.stringify(data)
|
|
|
}
|
|
|
+
|
|
|
+onMounted(() => {
|
|
|
+ getProtocol()
|
|
|
+})
|
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped >
|