|
@ -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(()=>{ |
|
|