浏览代码

refactor🎨: 修改岗位状态类型为int

zhangwenjian 4 年之前
父节点
当前提交
a447eeba25
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/admin/sys-post/index.vue

+ 1 - 1
src/views/admin/sys-post/index.vue

@@ -87,7 +87,7 @@
           <el-table-column label="状态" align="center" prop="status" :formatter="statusFormat">
           <el-table-column label="状态" align="center" prop="status" :formatter="statusFormat">
             <template slot-scope="scope">
             <template slot-scope="scope">
               <el-tag
               <el-tag
-                :type="scope.row.status === '1' ? 'danger' : 'success'"
+                :type="scope.row.status === 1 ? 'danger' : 'success'"
                 disable-transitions
                 disable-transitions
               >{{ statusFormat(scope.row) }}</el-tag>
               >{{ statusFormat(scope.row) }}</el-tag>
             </template>
             </template>