perf: 优化接口类型

This commit is contained in:
xiaoxian521
2022-08-18 18:35:09 +08:00
parent d6a329a63c
commit a983575b6d
7 changed files with 37 additions and 28 deletions

View File

@@ -1,8 +1,8 @@
<script setup lang="ts">
import { useColumns } from "./columns";
import { handleTree } from "@pureadmin/utils";
import { getDeptList } from "/@/api/system";
import { FormInstance } from "element-plus";
import { handleTree } from "@pureadmin/utils";
import { reactive, ref, onMounted } from "vue";
import { TableProBar } from "/@/components/ReTable";
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
@@ -37,7 +37,7 @@ function handleSelectionChange(val) {
async function onSearch() {
loading.value = true;
let { data } = await getDeptList();
dataList.value = handleTree(data);
dataList.value = handleTree(data as any);
setTimeout(() => {
loading.value = false;
}, 500);

View File

@@ -64,7 +64,7 @@ watch(searchValue, val => {
onMounted(async () => {
let { data } = await getDeptList();
treeData.value = handleTree(data);
treeData.value = handleTree(data as any);
});
</script>