🐛 Bug fixes
This commit is contained in:
parent
f7063fc109
commit
77c1a029bd
@ -4,8 +4,10 @@
|
|||||||
<option name="autoReloadType" value="ALL" />
|
<option name="autoReloadType" value="ALL" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="3fefb2c4-b6f9-466b-a523-53352e8d6f95" name="更改" comment=":rotating_light: Fix ts lint issue">
|
<list default="true" id="3fefb2c4-b6f9-466b-a523-53352e8d6f95" name="更改" comment=":poop: Remove mis-imported cgo">
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/pkg/internal/server/admin/users_api.go" beforeDir="false" afterPath="$PROJECT_DIR$/pkg/internal/server/admin/users_api.go" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/web/src/views/admin/users.vue" beforeDir="false" afterPath="$PROJECT_DIR$/web/src/views/admin/users.vue" afterDir="false" />
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
@ -151,7 +153,6 @@
|
|||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
<component name="VcsManagerConfiguration">
|
<component name="VcsManagerConfiguration">
|
||||||
<MESSAGE value=":bug: Fix ws security blocked" />
|
|
||||||
<MESSAGE value=":bug: Invisible status is visible to others" />
|
<MESSAGE value=":bug: Invisible status is visible to others" />
|
||||||
<MESSAGE value=":ambulance: Fix nil pointer panic" />
|
<MESSAGE value=":ambulance: Fix nil pointer panic" />
|
||||||
<MESSAGE value=":bug: Not supposed to appear to status at the same time" />
|
<MESSAGE value=":bug: Not supposed to appear to status at the same time" />
|
||||||
@ -176,7 +177,8 @@
|
|||||||
<MESSAGE value=":sparkles: View auth factors" />
|
<MESSAGE value=":sparkles: View auth factors" />
|
||||||
<MESSAGE value=":sparkles: View auth factors in admin panel" />
|
<MESSAGE value=":sparkles: View auth factors in admin panel" />
|
||||||
<MESSAGE value=":rotating_light: Fix ts lint issue" />
|
<MESSAGE value=":rotating_light: Fix ts lint issue" />
|
||||||
<option name="LAST_COMMIT_MESSAGE" value=":rotating_light: Fix ts lint issue" />
|
<MESSAGE value=":poop: Remove mis-imported cgo" />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" value=":poop: Remove mis-imported cgo" />
|
||||||
</component>
|
</component>
|
||||||
<component name="VgoProject">
|
<component name="VgoProject">
|
||||||
<settings-migrated>true</settings-migrated>
|
<settings-migrated>true</settings-migrated>
|
||||||
|
@ -22,7 +22,7 @@ func listUser(c *fiber.Ctx) error {
|
|||||||
return fiber.NewError(fiber.StatusInternalServerError, err.Error())
|
return fiber.NewError(fiber.StatusInternalServerError, err.Error())
|
||||||
}
|
}
|
||||||
var items []models.Account
|
var items []models.Account
|
||||||
if err := database.C.Offset(offset).Limit(take).Find(&items).Error; err != nil {
|
if err := database.C.Offset(offset).Limit(take).Order("id ASC").Find(&items).Error; err != nil {
|
||||||
return fiber.NewError(fiber.StatusInternalServerError, err.Error())
|
return fiber.NewError(fiber.StatusInternalServerError, err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -114,6 +114,9 @@ const pagination = reactive({
|
|||||||
})
|
})
|
||||||
|
|
||||||
async function readUsers({ page, itemsPerPage }: { page?: number; itemsPerPage?: number }) {
|
async function readUsers({ page, itemsPerPage }: { page?: number; itemsPerPage?: number }) {
|
||||||
|
if (itemsPerPage) pagination.pageSize = itemsPerPage
|
||||||
|
if (page) pagination.page = page
|
||||||
|
|
||||||
reverting.value = true
|
reverting.value = true
|
||||||
const res = await request(
|
const res = await request(
|
||||||
"/api/admin/users?" +
|
"/api/admin/users?" +
|
||||||
|
Loading…
Reference in New Issue
Block a user