chore: add trailing slash for API calling

This commit is contained in:
JustSong committed 2023-06-11 16:33:40 +08:00
1 parent 8ee59256fc
commit ff1380ef87
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -61,7 +61,7 @@ const EditChannel = () => {
const fetchGroups = async () => { const fetchGroups = async () => {
try { try {
let res = await API.get(`/api/group`); let res = await API.get(`/api/group/`);
setGroupOptions(res.data.data.map((group) => ({ setGroupOptions(res.data.data.map((group) => ({
key: group, key: group,
text: group, text: group,
+1 -1
View File
@@ -25,7 +25,7 @@ const EditUser = () => {
}; };
const fetchGroups = async () => { const fetchGroups = async () => {
try { try {
let res = await API.get(`/api/group`); let res = await API.get(`/api/group/`);
setGroupOptions(res.data.data.map((group) => ({ setGroupOptions(res.data.data.map((group) => ({
key: group, key: group,
text: group, text: group,