mirror of
https://github.com/1f349/admin.1f349.com.git
synced 2024-11-09 22:32:57 +00:00
Use record id for edits and deletions
This commit is contained in:
parent
cb25cf000a
commit
5c943c6636
@ -47,7 +47,7 @@
|
|||||||
|
|
||||||
const apiAzalea = import.meta.env.VITE_API_AZALEA;
|
const apiAzalea = import.meta.env.VITE_API_AZALEA;
|
||||||
|
|
||||||
const table = new RestTable<AnyRecord>(apiAzalea + "/domains/" + $domainOption + "/records", (item: AnyRecord) => item.name);
|
const table = new RestTable<AnyRecord>(apiAzalea + "/domains/" + $domainOption + "/records", (item: AnyRecord) => item.id);
|
||||||
|
|
||||||
domainOption.subscribe(x => {
|
domainOption.subscribe(x => {
|
||||||
table.changeUrl(apiAzalea + "/domains/" + x + "/records");
|
table.changeUrl(apiAzalea + "/domains/" + x + "/records");
|
||||||
|
Loading…
Reference in New Issue
Block a user