From 94a3be2b586ef9f73272890c0528f68eacca7b0f Mon Sep 17 00:00:00 2001 From: lanyuanxiaoyao Date: Tue, 17 Dec 2024 09:01:18 +0800 Subject: [PATCH] =?UTF-8?q?feat(ware):=20=E4=B8=BA=E5=95=86=E5=93=81?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E5=AD=97=E6=AE=B5=E6=B7=BB=E5=8A=A0=E5=BF=85?= =?UTF-8?q?=E5=A1=AB=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在 dialog-ware.js 文件中,将 'icon' 字段的配置添加 required: true 属性,确保商品图标在录入时必须填写,提高数据完整性。 --- gringotts-frontend/components/ware/dialog-ware.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/gringotts-frontend/components/ware/dialog-ware.js b/gringotts-frontend/components/ware/dialog-ware.js index 08e91ba..2c90fec 100644 --- a/gringotts-frontend/components/ware/dialog-ware.js +++ b/gringotts-frontend/components/ware/dialog-ware.js @@ -1,11 +1,5 @@ import './dialog-ware.css' -import { - apiGet, - apiPost, - formInputClearable, - horizontalFormOptions, - information, -} from "../constants.js"; +import {apiGet, apiPost, formInputClearable, horizontalFormOptions, information,} from "../constants.js"; import {resourceList} from '../../pages/index/tab-data.js' import {resourceDetailDialog} from '../resource/dialog-resource.js' @@ -26,6 +20,7 @@ function detailForm() { type: 'input-image', name: 'icon', label: '图标', + required: true, }, { type: 'picker',