feat:迁移过去一部门
This commit is contained in:
1 parent
370024dc76
commit
838f05b3c0
35 files changed
+3372
-118
No files matched your search
@@ -1,7 +1,6 @@
|
||||
import base64 from "base64-utf8"
|
||||
|
||||
import request from "@/sheep/utils/request"
|
||||
import { storageConstant } from "@@/constant"
|
||||
|
||||
// 将 Basic Auth 字符串提取为常量
|
||||
const BASIC_AUTH = "Basic " + base64.encode(import.meta.env.VITE_OAUTH2_APP_CLIENT)
|
||||
@@ -21,7 +20,7 @@ export default {
|
||||
return request({
|
||||
url: "/auth/oauth2/token",
|
||||
header: {
|
||||
skipToken: true,
|
||||
skipToken: "true",
|
||||
Authorization: BASIC_AUTH,
|
||||
"Content-Type": "application/x-www-form-urlencoded",
|
||||
},
|
||||
@@ -54,7 +53,6 @@ export default {
|
||||
method: "POST",
|
||||
params: {
|
||||
username,
|
||||
password,
|
||||
randomStr,
|
||||
code,
|
||||
grant_type,
|
||||
@@ -136,4 +134,12 @@ export default {
|
||||
method: "POST",
|
||||
data,
|
||||
}),
|
||||
|
||||
// 用户修改个人资料
|
||||
appModifyUser: (data: any) =>
|
||||
request({
|
||||
url: "/admin/user/app/modify",
|
||||
method: "POST",
|
||||
data,
|
||||
}),
|
||||
}
|
||||
Reference in new issue
Block a user