新功能: 角色授权页面,获取菜单

This commit is contained in:
猿小天
2023-02-03 20:58:00 +08:00
parent 2e94c88b63
commit 896398ac03
3 changed files with 270 additions and 256 deletions

View File

@@ -31,7 +31,7 @@ function createService() {
const { code } = dataAxios;
// 根据 code 进行判断
if (code === undefined) {
// 如果没有 code 代表这不是项目后端开发的接口
// 如果没有 code 代表这不是项目后端开发的接口
errorCreate(`非标准返回:${dataAxios} ${response.config.url}`);
return dataAxios;
} else {
@@ -43,7 +43,7 @@ function createService() {
//如果不需要解包
return dataAxios;
}
return dataAxios.data;
return dataAxios;
default:
// 不是正确的 code
errorCreate(`${dataAxios.msg}: ${response.config.url}`);