This commit is contained in:
xiaojunnuo
2024-11-20 18:12:10 +08:00
parent de43391e4c
commit c222b702c3
5 changed files with 32 additions and 1 deletions
@@ -55,7 +55,7 @@ export default defineComponent({
async function refreshTarget(value) {
selectedId.value = value;
if (value > 0) {
target.value = await api.GetObj(value);
target.value = await api.GetSimpleInfo(value);
}
}
@@ -43,6 +43,14 @@ export function createAccessApi(from = "user") {
});
},
async GetSimpleInfo(id: number) {
return await request({
url: apiPrefix + "/simpleInfo",
method: "post",
params: { id }
});
},
async GetSecretPlain(id: number, key: string) {
return await request({
url: apiPrefix + "/getSecretPlain",