refactor: chat role manage for admin is ready

This commit is contained in:
RockYang
2023-06-20 11:46:13 +08:00
parent d244ad9983
commit f593526bd4
10 changed files with 175 additions and 64 deletions

View File

@@ -245,7 +245,7 @@ if (!user.value) {
resizeElement();
checkSession().then(() => {
// 加载角色列表
httpGet(`/api/chat/role/list?user_id=${user.value.id}`).then((res) => {
httpGet(`/api/role/list?user_id=${user.value.id}`).then((res) => {
roles.value = res.data;
roleId.value = roles.value[0]['id'];
// 获取会话列表