From 9b389f4dfda817945c7ad5ec0a9d88d263fa475a Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期一, 22 一月 2024 17:40:50 +0800 Subject: [PATCH] 修改到119 --- src/stores/devices.ts | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/src/stores/devices.ts b/src/stores/devices.ts index 26d7162..e0f81ef 100644 --- a/src/stores/devices.ts +++ b/src/stores/devices.ts @@ -10,6 +10,14 @@ return deviceRes?.value?.data as Devices }) + // 褰撳墠璁惧鍦ㄧ己灏戝伐鑹哄弬鏁扮殑鏃跺�欐槸鍚﹀厑璁镐笅鍙戠敓浜� + const currentDeviceAllowNoParams = computed(() => { + const currentDeviceInfo = deviceInfo.value.deviceList?.find((ele) => { + return ele.deviceID === deviceInfo.value.currentDeviceID + }) + return !currentDeviceInfo?.needSetProcessParams + }) + /** * 濡傛灉浠诲姟鐘舵�佹槸杩涜涓�, 鍒欒疆璇� plc 鍙栬繘搴� */ @@ -28,5 +36,5 @@ startDevicePolling() } - return { deviceInfo, startPollingDevice } + return { deviceInfo, startPollingDevice, currentDeviceAllowNoParams } }) -- Gitblit v1.8.0