zs 7 місяців тому
батько
коміт
e48d476b08

+ 1 - 1
src/views/center/achievement.vue

@@ -494,7 +494,7 @@ const toFile = async () => {
   if (checkedExport.value.length > 0) {
     const reqData = { table: 'achievement', config: checkedExport.value, user: user.value.id }
     const res = await utilStore.toExport(reqData)
-    if ($checkRes(res, true)) {
+    if (res.errcode == '0') {
       ElMessage({ type: `success`, message: `导出成功` })
       window.open(res.data)
     }

+ 1 - 1
src/views/center/basic.vue

@@ -203,7 +203,7 @@ const toSave = () => {
         status: '0'
       }
       const res = await cirelationStore.create(data)
-      if ($checkRes(res, true)) ElMessage({ message: `申请进入孵化器成功等待审核`, type: 'success' })
+      if (res.errcode == '0') ElMessage({ message: `申请进入孵化器成功等待审核`, type: 'success' })
       incubator_id.value = ''
     })
     .catch(() => {})

+ 1 - 1
src/views/center/demand.vue

@@ -472,7 +472,7 @@ const toFile = async () => {
   if (checkedExport.value.length > 0) {
     const reqData = { table: 'demand', config: checkedExport.value, user: user.value.id }
     const res = await utilStore.toExport(reqData)
-    if ($checkRes(res, true)) {
+    if (res.errcode == '0') {
       ElMessage({ type: `success`, message: `导出成功` })
       window.open(res.data)
     }

+ 1 - 1
src/views/center/project.vue

@@ -481,7 +481,7 @@ const toFile = async () => {
   if (checkedExport.value.length > 0) {
     const reqData = { table: 'project', config: checkedExport.value, user: user.value.id }
     const res = await utilStore.toExport(reqData)
-    if ($checkRes(res, true)) {
+    if (res.errcode == '0') {
       ElMessage({ type: `success`, message: `导出成功` })
       window.open(res.data)
     }

+ 1 - 1
src/views/center/supply.vue

@@ -469,7 +469,7 @@ const toFile = async () => {
   if (checkedExport.value.length > 0) {
     const reqData = { table: 'supply', config: checkedExport.value, user: user.value.id }
     const res = await utilStore.toExport(reqData)
-    if ($checkRes(res, true)) {
+    if (res.errcode == '0') {
       ElMessage({ type: `success`, message: `导出成功` })
       window.open(res.data)
     }