ソースを参照

更新 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>