🐛 修复 BUG

This commit is contained in:
Wisp X
2022-03-01 12:33:55 +08:00
parent 234defc719
commit ccddb8a0fd
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -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);
+2 -2
View File
@@ -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)