Browse Source

优化调试页

master
LiLongLong 5 months ago
parent
commit
ce2b92b5ec
  1. 12
      src/views/debug/index.vue

12
src/views/debug/index.vue

@ -269,7 +269,7 @@
</main> </main>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { ref, onMounted, onUnmounted } from 'vue'
import { ref, onMounted, onUnmounted, watch } from 'vue'
import { createWebSocket, sharedWsUrl } from "@/services/socket"; import { createWebSocket, sharedWsUrl } from "@/services/socket";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";
import type { import type {
@ -311,6 +311,16 @@ import {
index: 0 index: 0
}) })
watch(voltageValue,(newVal)=>{
if(newVal > 5000){
voltageValue.value = 5000
}
if(newVal < 0){
voltageValue.value = 0
}
})
const rotateForm = ref<Record<string, string>>({}) const rotateForm = ref<Record<string, string>>({})
let subscription:any let subscription:any
onMounted(()=>{ onMounted(()=>{

Loading…
Cancel
Save