refactor: 更换 ESLint 配置为 @antfu/eslint-config

This commit is contained in:
2024-05-10 22:29:45 +08:00
parent 5101dd12d9
commit bfc8e42bad
148 changed files with 7314 additions and 5046 deletions

View File

@@ -14,13 +14,17 @@
</template>
<script setup lang="ts">
import { getDept, addDept, updateDept } from '@/apis'
import type { DeptReq } from './type'
import { Message } from '@arco-design/web-vue'
import { GiForm, type Columns } from '@/components/GiForm'
import type { DeptReq } from './type'
import { addDept, getDept, updateDept } from '@/apis'
import { type Columns, GiForm } from '@/components/GiForm'
import { useForm } from '@/hooks'
import { useDept } from '@/hooks/app'
const emit = defineEmits<{
(e: 'save-success'): void
}>()
const { deptList, getDeptList } = useDept()
const dataId = ref('')
@@ -49,7 +53,7 @@ const columns: Columns = [
fallbackOption: false,
filterTreeNode(searchKey, nodeData) {
if (nodeData.title) {
return nodeData.title.toLowerCase().indexOf(searchKey.toLowerCase()) > -1
return nodeData.title.toLowerCase().includes(searchKey.toLowerCase())
}
return false
}
@@ -147,9 +151,5 @@ const save = async () => {
}
}
const emit = defineEmits<{
(e: 'save-success'): void
}>()
defineExpose({ onAdd, onUpdate })
</script>