chore: add trailing slash for API calling

This commit is contained in:
JustSong 2023-06-11 16:33:40 +08:00
parent 69153e7231
commit 39481eb6c0
2 changed files with 2 additions and 2 deletions

View File

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

View File

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