style(api): 统一代码格式化规范

- 调整 import 语句格式,统一空格和引号风格
- 修复函数参数跨行时的格式对齐问题
- 清理多余空行和注释中的空白字符
- 统一对象属性结尾逗号的使用规范
- 规范化字符串拼接和模板语法的格式
- 优化长参数列表的换行和缩进格式
This commit is contained in:
2026-01-17 17:04:46 +08:00
parent 836fd4d8d0
commit 4af50e6449
416 changed files with 24611 additions and 22733 deletions

View File

@@ -134,7 +134,7 @@
import { ItemType } from 'ele-admin-pro/es/ele-image-upload/types';
import { FormInstance } from 'ant-design-vue/es/form';
import { FileRecord } from '@/api/system/file/model';
import {CmsNavigation} from "@/api/cms/cmsNavigation/model";
import { CmsNavigation } from '@/api/cms/cmsNavigation/model';
// 是否是修改
const isUpdate = ref(false);
@@ -255,12 +255,12 @@
images.value = [];
if (props.data) {
assignObject(form, props.data);
if(props.data.image){
if (props.data.image) {
images.value.push({
uid: uuid(),
url: props.data.image,
status: 'done'
})
});
}
isUpdate.value = true;
} else {

View File

@@ -60,7 +60,7 @@
// 表单数据
const { where, resetFields } = useSearch<CmsDesignParam>({
keywords: '',
categoryId: undefined,
categoryId: undefined
});
// 新增
@@ -89,11 +89,7 @@
if (!d.component) {
d.disabled = true;
}
if (
d.model == 'index' ||
d.model == 'page' ||
d.model == 'order'
) {
if (d.model == 'index' || d.model == 'page' || d.model == 'order') {
d.disabled = true;
}
return d;