Ver código fonte

调整编码管理数据获取接口

chenwen 2 anos atrás
pai
commit
4eecdf92c1
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      src/pages/sys/SortCode.vue

+ 2 - 2
src/pages/sys/SortCode.vue

@@ -74,7 +74,7 @@
 
 
 <script setup>
 <script setup>
 	import {ref,reactive} from 'vue'
 	import {ref,reactive} from 'vue'
-	import { fetchData} from "../../api/sidetree.js"
+	import sidetreeAPI from "../../api/sidetree.js"
 	
 	
 	const treeNodes = ref([])
 	const treeNodes = ref([])
 	
 	
@@ -101,7 +101,7 @@
 	}
 	}
 	
 	
 	const getData = () => {
 	const getData = () => {
-	    fetchData({}).then((res) => {
+	    sidetreeAPI.fetchData({}).then((res) => {
 	        treeNodes.value=res
 	        treeNodes.value=res
 	    });
 	    });
 	};
 	};