fix:模型生成
This commit is contained in:
parent
1c3f606165
commit
265077229d
@ -130,7 +130,6 @@ use Catch\Traits\DB\BaseOperate;
|
|||||||
use Catch\Traits\DB\ScopeTrait;
|
use Catch\Traits\DB\ScopeTrait;
|
||||||
use Catch\Traits\DB\Trans;
|
use Catch\Traits\DB\Trans;
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
use Catch\Traits\DB\WithAttributes;
|
|
||||||
Text;
|
Text;
|
||||||
} else {
|
} else {
|
||||||
return <<<Text
|
return <<<Text
|
||||||
@ -146,7 +145,7 @@ Text;
|
|||||||
*/
|
*/
|
||||||
protected function getTraits(): string
|
protected function getTraits(): string
|
||||||
{
|
{
|
||||||
return $this->softDelete ? '' : 'use WithAttributes, BaseOperate, Trans, ScopeTrait;';
|
return $this->softDelete ? '' : 'use BaseOperate, Trans, ScopeTrait;';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -13,7 +13,7 @@ import { useShow } from '/admin/composables/curd/useShow'
|
|||||||
import { onMounted } from 'vue'
|
import { onMounted } from 'vue'
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
primary: String | Number,
|
primary: [String, Number],
|
||||||
api: String,
|
api: String,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user