🐛 修复 BUG
This commit is contained in:
@@ -93,6 +93,8 @@ class User extends Authenticatable implements MustVerifyEmail
|
||||
protected static function booted()
|
||||
{
|
||||
static::creating(function (self $user) {
|
||||
// 默认组
|
||||
$user->group_id = Group::query()->where('is_default', true)->value('id');
|
||||
// 初始容量
|
||||
$user->capacity = Utils::config(ConfigKey::UserInitialCapacity);
|
||||
|
||||
|
||||
@@ -38,8 +38,8 @@
|
||||
<x-box>
|
||||
<x-slot name="title">可使用的策略</x-slot>
|
||||
<x-slot name="content">
|
||||
@if(! $strategies)
|
||||
<x-no-data message="没有可用的策略,将使用系统默认配置。" />
|
||||
@if($strategies->isEmpty())
|
||||
<x-no-data message="您所在的组还没有可用的储存策略,请联系管理员。" />
|
||||
@else
|
||||
<div class="divide-y divide-solid">
|
||||
@foreach ($strategies as $strategy)
|
||||
|
||||
Reference in New Issue
Block a user