feat: 根据eslint 对项目进行规范化处理
This commit is contained in:
@@ -818,7 +818,6 @@ const enterDialog = async() => {
|
||||
}
|
||||
break
|
||||
default:
|
||||
// eslint-disable-next-line no-lone-blocks
|
||||
{
|
||||
ElMessage({
|
||||
type: 'error',
|
||||
@@ -873,7 +872,7 @@ const apiCompletion = async () =>{
|
||||
}
|
||||
}
|
||||
})
|
||||
} catch (e) {
|
||||
} catch (_) {
|
||||
ElMessage({
|
||||
type: 'error',
|
||||
message: 'AI自动填充失败,请重新生成'
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
:filter-node-method="filterNode"
|
||||
@check="nodeChange"
|
||||
>
|
||||
<template #default="{ node, data }">
|
||||
<template #default="{ _, data }">
|
||||
<div class="flex items-center justify-between w-full pr-1">
|
||||
<span>{{ data.description }} </span>
|
||||
<el-tooltip
|
||||
|
||||
@@ -101,7 +101,7 @@ const initCascader = (value) => {
|
||||
}
|
||||
|
||||
// 编辑的时候,根据路径判断是选择框还是输入框
|
||||
if (pathInfo[`/src/${value}` || pathInfo[value]]) {
|
||||
if (pathInfo[`/src/${value}`]) {
|
||||
activeComponent.value = value.split('/').filter(Boolean);
|
||||
tempPath.value = ''
|
||||
pathIsSelect.value = true
|
||||
|
||||
@@ -291,7 +291,7 @@ const deleteSysOperationRecordFunc = async(row) => {
|
||||
const fmtBody = (value) => {
|
||||
try {
|
||||
return JSON.parse(value)
|
||||
} catch (err) {
|
||||
} catch (_) {
|
||||
return value
|
||||
}
|
||||
}
|
||||
|
||||
@@ -155,7 +155,7 @@ import {
|
||||
} from '@/api/sysParams'
|
||||
|
||||
// 全量引入格式化工具 请按需保留
|
||||
import { getDictFunc, formatDate, formatBoolean, filterDict ,filterDataSource, returnArrImg, onDownloadFile } from '@/utils/format'
|
||||
import { formatDate } from '@/utils/format'
|
||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
import { ref, reactive } from 'vue'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user