Browse Source

no message

linwenxin 3 tháng trước cách đây
mục cha
commit
73c5fe5ce5
2 tập tin đã thay đổi với 20 bổ sung12 xóa
  1. 10 6
      src/common/utils/navPag.js
  2. 10 6
      src/pages/index/index.vue

+ 10 - 6
src/common/utils/navPag.js

@@ -23,9 +23,11 @@ export const navToPage = (function () {
       !['/pages/index/index', '/pages/repairConfirmation'].find(item => !!~url.indexOf(item))
     ) {
       if (
-        await this.$api.post('/worker/check/manual/sign/confirm', {
-          type: 'gz'
-        }).data
+        (
+          await this.$api.post('/worker/check/manual/sign/confirm', {
+            type: 'gz'
+          })
+        )?.data
       ) {
         uni.showModal({
           title: '温馨提示',
@@ -59,9 +61,11 @@ export const navToPage = (function () {
       !['/pages/index/index', '/pages/repairConfirmation'].find(item => !!~url.indexOf(item))
     ) {
       if (
-        await this.$api.post('/worker/check/manual/sign/confirm', {
-          type: 'fs'
-        }).data
+        (
+          await this.$api.post('/worker/check/manual/sign/confirm', {
+            type: 'fs'
+          })
+        )?.data
       ) {
         uni.showModal({
           title: '温馨提示',

+ 10 - 6
src/pages/index/index.vue

@@ -465,9 +465,11 @@ export default {
           } else {
             if (this.userInfo.isGZSign) {
               if (
-                await this.$api.post('/worker/check/manual/sign/confirm', {
-                  type: 'gz'
-                }).data
+                (
+                  await this.$api.post('/worker/check/manual/sign/confirm', {
+                    type: 'gz'
+                  })
+                )?.data
               ) {
                 uni.showModal({
                   title: '温馨提示',
@@ -491,9 +493,11 @@ export default {
               }
             } else if (this.userInfo.isFSSign) {
               if (
-                await this.$api.post('/worker/check/manual/sign/confirm', {
-                  type: 'fs'
-                }).data
+                (
+                  await this.$api.post('/worker/check/manual/sign/confirm', {
+                    type: 'fs'
+                  })
+                )?.data
               ) {
                 uni.showModal({
                   title: '温馨提示',