chore(config): 添加开发和生产环境配置文件及相关忽略规则
- 新增 .env.development 文件,配置开发环境变量 - 新增 .env.production 文件,配置生产环境变量及压缩选项 - 添加 .gitignore 文件,忽略常见临时文件和本地配置 - 新增 .npmrc 文件,配置私有npm仓库及认证信息 - 新增 .prettierrc.json,配置代码格式化规则 - 添加 403 错误页面背景图 svg 文件至 public/img/bg/目录
This commit is contained in:
@@ -86,7 +86,10 @@ export const createOption = ({ validateLongitude, validateLatitude }) => ({
|
||||
type: 'number',
|
||||
precision: 6,
|
||||
minWidth: 120,
|
||||
rules: [{ validator: validateLongitude, trigger: 'blur' }],
|
||||
rules: [
|
||||
{ required: true, message: '请输入经度', trigger: 'blur' },
|
||||
{ validator: validateLongitude, trigger: 'blur' },
|
||||
],
|
||||
},
|
||||
{
|
||||
label: '纬度',
|
||||
@@ -94,13 +97,17 @@ export const createOption = ({ validateLongitude, validateLatitude }) => ({
|
||||
type: 'number',
|
||||
precision: 6,
|
||||
minWidth: 120,
|
||||
rules: [{ validator: validateLatitude, trigger: 'blur' }],
|
||||
rules: [
|
||||
{ required: true, message: '请输入纬度', trigger: 'blur' },
|
||||
{ validator: validateLatitude, trigger: 'blur' },
|
||||
],
|
||||
},
|
||||
{
|
||||
label: '行政区划',
|
||||
prop: 'regionName',
|
||||
search: true,
|
||||
minWidth: 150,
|
||||
rules: [{ required: true, message: '请输入行政区划', trigger: 'blur' }],
|
||||
},
|
||||
{
|
||||
label: '组织',
|
||||
|
||||
Reference in New Issue
Block a user