mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-17 06:46:46 +08:00
接口调整
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
</template>
|
||||
<script setup>
|
||||
import {defineEmits, defineProps, ref, watch, watchEffect} from "vue";
|
||||
import { boeRequest, useBoeApi } from "@/api/request";
|
||||
import {boeRequest, useBoeApi, useRequest} from "@/api/request";
|
||||
import { ORG_CHILD_LIST, ORG_LIST } from "@/api/ThirdApi";
|
||||
|
||||
const props = defineProps({
|
||||
@@ -57,13 +57,9 @@ const props = defineProps({
|
||||
const emit = defineEmits({});
|
||||
const stuTreeExpandedKeys = ref([]);
|
||||
const labelValue = ref([]);
|
||||
const { data: options, loading: orgLoading } = useBoeApi(
|
||||
const { data: options, loading: orgLoading } = useRequest(
|
||||
ORG_LIST,
|
||||
{ keyword: "" },
|
||||
{
|
||||
init: true,
|
||||
result: (res) => res.result.map((e) => ({ ...e, isLeaf: false })),
|
||||
}
|
||||
);
|
||||
|
||||
watchEffect(()=>{
|
||||
|
||||
Reference in New Issue
Block a user