xzc 1 тиждень тому
батько
коміт
aa13f51d0f

+ 9 - 7
yudao-ui-admin-vue3/src/views/pressure2/boilerchecker/components/StatusOperationPanel.vue

@@ -1718,6 +1718,8 @@ const fetchProjectConfig = async () => {
     })
     if (res && res.length > 0) {
       projectConfig.value = res[0]
+    } else {
+      projectConfig.value = {}
     }
   } catch (error) {
     console.error('获取项目配置失败:', error)
@@ -1737,13 +1739,13 @@ const handleMiniProgramPush = async () => {
     miniProgramPushDialogVisible.value = true
   } else {
     // 不需要签名,直接推送
-    ElMessageBox.confirm('确定要进行小程序推送吗?', '提示', {
-      confirmButtonText: '确定',
-      cancelButtonText: '取消',
-      type: 'warning'
-    }).then(() => {
-      executeMiniProgramPush()
-    }).catch(() => {})
+    // ElMessageBox.confirm('确定要进行小程序推送吗?', '提示', {
+    //   confirmButtonText: '确定',
+    //   cancelButtonText: '取消',
+    //   type: 'warning'
+    // }).then(() => {
+    //   executeMiniProgramPush()
+    // }).catch(() => {})
   }
 }
 

+ 9 - 7
yudao-ui-admin-vue3/src/views/pressure2/pipechecker/components/StatusOperationPanel.vue

@@ -1685,6 +1685,8 @@ const fetchProjectConfig = async () => {
     })
     if (res && res.length > 0) {
       projectConfig.value = res[0]
+    } else {
+      projectConfig.value = {}
     }
   } catch (error) {
     console.error('获取项目配置失败:', error)
@@ -1704,13 +1706,13 @@ const handleMiniProgramPush = async () => {
     miniProgramPushDialogVisible.value = true
   } else {
     // 不需要签名,直接推送
-    ElMessageBox.confirm('确定要进行小程序推送吗?', '提示', {
-      confirmButtonText: '确定',
-      cancelButtonText: '取消',
-      type: 'warning'
-    }).then(() => {
-      executeMiniProgramPush()
-    }).catch(() => {})
+    // ElMessageBox.confirm('确定要进行小程序推送吗?', '提示', {
+    //   confirmButtonText: '确定',
+    //   cancelButtonText: '取消',
+    //   type: 'warning'
+    // }).then(() => {
+    //   executeMiniProgramPush()
+    // }).catch(() => {})
   }
 }