fix: return code -1 when disabled user has token in getResourceList, triggers frontend logout

This commit is contained in:
2026-05-21 10:08:15 +08:00
parent 8bb7b5d30a
commit 3b44300216
2 changed files with 9 additions and 3 deletions
+3 -3
View File
@@ -26,8 +26,9 @@
<el-table :data="tableData" v-loading="loading">
<!-- <el-table-column prop="id" label="ID" width="80" /> -->
<el-table-column prop="phone" label="手机号" width="140" />
<el-table-column prop="status" label="状态" width="100">
<el-table-column prop="phone" label="手机号" />
<el-table-column prop="create_time" label="创建时间" width="180" />
<el-table-column prop="status" label="状态" width="100">
<template #default="{ row }">
<el-switch
v-model="row.status"
@@ -40,7 +41,6 @@
/>
</template>
</el-table-column>
<el-table-column prop="create_time" label="创建时间" width="180" />
<el-table-column label="操作" width="200" fixed="right">
<template #default="{ row }">
<el-button type="primary" link @click="handleEdit(row)">编辑</el-button>