From 8561526609200b395f611f129c39ea63e78bd576 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Tue, 08 Apr 2025 14:26:33 +0800
Subject: [PATCH] refactor: 多个字典查询重构

---
 src/views/TaskManage/components/TaskAlgorithmBusiness.vue |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/views/TaskManage/components/TaskAlgorithmBusiness.vue b/src/views/TaskManage/components/TaskAlgorithmBusiness.vue
index 2dcd44a..8878c26 100644
--- a/src/views/TaskManage/components/TaskAlgorithmBusiness.vue
+++ b/src/views/TaskManage/components/TaskAlgorithmBusiness.vue
@@ -13,7 +13,8 @@
 </template>
 
 <script setup>
-import { getDictionary } from '@/api/home/common';
+
+import { getMultipleDictionary } from '@/api/system/dictbiz'
 
 // 接收父组件传参
 const props = defineProps({
@@ -36,7 +37,7 @@
 
 // 请求字典字段
 const requestDictionary = () => {
-  getDictionary('SF,HYLB').then((res) => {
+  getMultipleDictionary('SF,HYLB').then((res) => {
     if (res.code !== 0) {
       // 处理数据
       taskAlgorithm.value = res.data.data['SF'];
@@ -57,4 +58,4 @@
 onMounted(() => {
   requestDictionary();
 });
-</script>
\ No newline at end of file
+</script>

--
Gitblit v1.9.3