Browse Source

修改bug

ZaiZai 1 year ago
parent
commit
17a1ae7e00

+ 1 - 1
public/version.json

@@ -1,3 +1,3 @@
 {
-  "value": "20240529163937"
+  "value": "20240530115435"
 }

+ 2 - 2
src/config/index.json

@@ -1,7 +1,7 @@
 {
     "version": "20230607160059",
-    "target1": "http://192.168.0.102:8090",
-    "target": "http://39.108.216.210:8090",
+    "target": "http://192.168.0.102:8090",
+    "target1": "http://39.108.216.210:8090",
     "smsPhone": "",
     "vite": {
         "port": 5174,

+ 8 - 2
src/views/tentative/detect/components/linkAcquisition.vue

@@ -73,8 +73,7 @@ const contractId = ref(store.getContractId)
 
 //渲染完成
 onMounted(() => {
-    getTestDataType()
-    getContractData()
+    getDataApi()
 })
 
 const curId = defineModel('modelValue', {
@@ -82,6 +81,13 @@ const curId = defineModel('modelValue', {
     default: '',
 })
 
+const getDataApi = async () => {
+    await getTestDataType()
+    await getContractData()
+    const ids = curId.value
+    dataIds.value = isNullES(ids) ? [] : ids.split(',')
+}
+
 //监听
 const dataIds = ref([])
 watch(() => curId.value, (id) => {