guo00guo před 5 roky
rodič
revize
7f94fc7699

+ 1 - 1
src/components/Home.vue

@@ -247,7 +247,7 @@ export default {
         this.systemStatistics = res.systemStatistics
       }).catch((error) => {
         this.hideLoading()
-        notify('error', '主页加载失败:' + error.data)
+        notify('error', '主页加载失败,请稍后重试')
       })
     },
     setUserInfo () {

+ 1 - 2
src/components/Mine.vue

@@ -248,7 +248,7 @@ export default {
         // }
       }).catch((error) => {
         this.hideLoading()
-        notify('error', '加载失败:' + error.data)
+        notify('error', '加载失败,请稍后重试' )
       })
     },
     setUserInfo () {
@@ -343,7 +343,6 @@ export default {
       if (event.name == 'handlingProject') {
         //this.processProjectNoticeCount = 0
       }
-      console.log('123')
       console.log(event)
     }
   },

+ 1 - 1
src/components/Square.vue

@@ -112,7 +112,7 @@ export default {
         this.list = res.crowdTaskVOList
         this.hideLoading()
       }).catch((error) => {
-        notify('error', '任务加载失败' + error.data)
+        notify('error', '任务加载失败')
       })
     },
     showLoading () {

+ 2 - 3
src/components/cheat/ProjectAdd.vue

@@ -525,9 +525,8 @@
                     //notify('success', '项目添加成功')
                 }).catch(error => {
                     console.log("打印错误信息!!!");
-                    console.log(error);
-                    console.log(error.data);
-                    notify('error', error)
+                    console.log(error.response.data);
+                    notify('error', error.response.data)
                     this.hideLoading()
                 })
             },

+ 2 - 3
src/components/commons/ProjectItem.vue

@@ -26,9 +26,8 @@
       <!--<el-col :span="4">{{project.id}}</el-col>-->
       <el-col :span="6" type="flex" align="middle" justify="center">
         <span style="font-size: 10px;"
-              v-bind:class="['badge',{ 'ios-platform': item=='IOS','android-platform': item=='ANDROID','web-platform': item=='WEB'}]"
-              v-for="item in project.platform"
-        >{{item}}</span>
+              v-bind:class="['badge']"
+        >{{project.platform}}</span>
       </el-col>
       <el-col :span="2" type="flex" align="middle" justify="center">
         <div class="badge">¥{{project.budget}}</div>

+ 0 - 1
src/components/project/Project.vue

@@ -904,7 +904,6 @@ export default {
               break
           }
         }
-
       }).catch((error) => {
         this.hideLoading()
         notify('error', error.data)