|
@@ -9,7 +9,6 @@
|
|
|
</template>
|
|
|
<script setup name="SELECT">
|
|
|
import { ref, onMounted, computed, watch } from 'vue';
|
|
|
-import { useRequest } from 'vue-request';
|
|
|
import { request } from '@/utils/request.js';
|
|
|
|
|
|
const props = defineProps({
|
|
@@ -37,9 +36,8 @@ const getOptions = async () => {
|
|
|
}
|
|
|
|
|
|
if (!props.config.dataGrid) return;
|
|
|
- const { data } = useRequest(getOptionsApi);
|
|
|
- // TODO: 将接口数据转换成options
|
|
|
- options.value = data;
|
|
|
+ const data = await getOptionsApi();
|
|
|
+ options.value = data || [];
|
|
|
};
|
|
|
|
|
|
onMounted(() => {
|