优化检测脚本样式

This commit is contained in:
GGJ
2025-02-28 09:00:15 +08:00
parent 30382fb34d
commit 82e8bf2e0b
3 changed files with 20 additions and 12 deletions

View File

@@ -1,15 +1,15 @@
import http from '@/api'
import { type Dict } from '@/api/system/dictionary/interface'
import {c} from "vite/dist/node/types.d-aGj9QkWt";
import { c } from 'vite/dist/node/types.d-aGj9QkWt'
//获取字典类型
export const getDictTreeByCode = (params: Dict.ResDictTree) => {
const code = params.code || '';
return http.get(`/dictTree/getTreeByCode?code=${code}`)
const code = params.code || ''
return http.get(`/dictTree/getTreeByCode?code=${code}`, { loading: true })
}
export const getDictTreeByName = (params: Dict.ResDictTree) => {
const name = params.name || '';
const name = params.name || ''
return http.get(`/dictTree/getTreeByName?name=${name}`)
}
@@ -27,4 +27,3 @@ export const updateDictTree = (params: Dict.ResDictTree) => {
export const deleteDictTree = (params: Dict.ResDictTree) => {
return http.post(`/dictTree/delete?id=${params.id}`)
}