mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-17 14:56:46 +08:00
接口调整
This commit is contained in:
@@ -36,8 +36,8 @@
|
||||
</template>
|
||||
<script setup>
|
||||
import { defineEmits, defineProps, ref, watch } from "vue";
|
||||
import { boeRequest, useBoeApi } from "@/api/request";
|
||||
import { ORG_CHILD_LIST, ORG_LIST } from "@/api/ThirdApi";
|
||||
import {boeRequest, useBoeApi, useRequest} from "@/api/request";
|
||||
import {ORG_CHILD_LIST, ORG_LIST} from "@/api/apis";
|
||||
|
||||
const props = defineProps({
|
||||
value: String,
|
||||
@@ -50,13 +50,9 @@ const props = defineProps({
|
||||
const emit = defineEmits({});
|
||||
const stuTreeExpandedKeys = ref([]);
|
||||
const labelValue = ref({ value: props.value, label: props.name });
|
||||
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 })),
|
||||
}
|
||||
);
|
||||
|
||||
watch(props, () => {
|
||||
|
||||
Reference in New Issue
Block a user