A:前端增加ETW内容测试
This commit is contained in:
1 parent
61ab65ee81
commit
e191bc28c1
2 files changed
+20
-1
No files matched your search
@@ -32,7 +32,7 @@ const invokeCommand = async (module: CommandType) => {
|
||||
if (props.isUseWebSocket) {
|
||||
useWebSocket.registerHandler(module.name, newVar)
|
||||
|
||||
useWebSocket.send('hello')
|
||||
useWebSocket.send(module.name)
|
||||
} else {
|
||||
try {
|
||||
bridge.send(module.name, params, (data) => {
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
<script setup lang="ts">
|
||||
import CommandManager from '@/components/CommandManager.vue'
|
||||
import type { CommandType } from '@/types/command'
|
||||
|
||||
const commands: CommandType[] = [
|
||||
{
|
||||
name: 'etwNetworkManger',
|
||||
description: 'ETW 内容测试',
|
||||
params: [],
|
||||
result: null,
|
||||
},
|
||||
]
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<CommandManager :isUseWebSocket="true" :pro="commands"></CommandManager>
|
||||
</template>
|
||||
|
||||
<style scoped></style>
|
||||
Reference in new issue
Block a user