소스 검색

更新 PostList.vue 审核状态显示的内容

reghao 2 년 전
부모
커밋
8a8388cb57
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      src/views/post/PostList.vue

+ 4 - 4
src/views/post/PostList.vue

@@ -83,12 +83,12 @@
                 prop="scope"
                 label="审核状态">
                 <template slot-scope="scope">
-                  <el-tag v-if="scope.row.status === 1" :type="'success'" disable-transitions>
-                    审核通过
-                  </el-tag>
-                  <el-tag v-else-if="scope.row.status === 2" :type="'warning'" disable-transitions>
+                  <el-tag v-if="scope.row.status === 1" :type="'warning'" disable-transitions>
                     审核中
                   </el-tag>
+                  <el-tag v-else-if="scope.row.status === 2" :type="'success'" disable-transitions>
+                    审核通过
+                  </el-tag>
                   <el-tag v-else :type="'danger'" disable-transitions>
                     审核未通过
                   </el-tag>