mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-03 13:44:47 +08:00
perf: 优化接口类型
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -64,7 +64,7 @@ watch(searchValue, val => {
|
||||
|
||||
onMounted(async () => {
|
||||
let { data } = await getDeptList();
|
||||
treeData.value = handleTree(data);
|
||||
treeData.value = handleTree(data as any);
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user