瀏覽代碼

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

chenwen 2 年之前
父節點
當前提交
4eecdf92c1
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/pages/sys/SortCode.vue

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

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