From 8512f4ae542325e15058c9fabb019db6ef1000ef Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期五, 17 九月 2021 15:13:33 +0800
Subject: [PATCH] 添加i18n国际化
---
src/api/user.ts | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/src/api/user.ts b/src/api/user.ts
index b2b61a0..0cc8dbd 100644
--- a/src/api/user.ts
+++ b/src/api/user.ts
@@ -60,7 +60,7 @@
return request({
url: "/data/api-u/users/updatePwd",
method: "post",
- data: params
+ data: qs.stringify(params)
});
};
@@ -78,4 +78,12 @@
url: "/data/api-u/users/defHeadPics",
method: "get"
});
+};
+
+
+export const getRoles = () => {
+ return request({
+ url: "/data/api-v/role/findAll",
+ method: "get"
+ });
};
\ No newline at end of file
--
Gitblit v1.8.0