商店详情页面
This commit is contained in:
1 parent
eea802dc10
commit
0088fe3509
14 files changed
+3741
-4242
No files matched your search
+18
-4
@@ -1,4 +1,8 @@
|
||||
import request from "@/sheep/utils/request";
|
||||
import { encryptionBase64 } from "@/sheep/utils/util";
|
||||
|
||||
const basicAuth = "Basic " + encryptionBase64(import.meta.env.VITE_OAUTH2_APP_CLIENT);
|
||||
const basicAuthzzdsh = "Basic " + encryptionBase64(import.meta.env.VITE_OAUTH2_ZZDSHAPP_CLIENT);
|
||||
|
||||
export default {
|
||||
userInfo: () =>
|
||||
@@ -39,13 +43,23 @@ export default {
|
||||
showLoading: false,
|
||||
},
|
||||
}),
|
||||
testLogin: (data: any) =>
|
||||
login: (params: any): any => {
|
||||
params.scene = "account";
|
||||
params.grant_type = "password";
|
||||
params.scope = "server";
|
||||
params.code = "";
|
||||
request({
|
||||
url: `/sys/auth/test-login`,
|
||||
url: `/auth/oauth2/token`,
|
||||
method: "POST",
|
||||
data,
|
||||
params,
|
||||
header: {
|
||||
Authorization: basicAuth,
|
||||
// Authorization: basicAuthzzdsh,
|
||||
"content-type": "application/x-www-form-urlencoded",
|
||||
},
|
||||
custom: {
|
||||
showLoading: false,
|
||||
},
|
||||
}),
|
||||
});
|
||||
},
|
||||
};
|
||||
Reference in new issue
Block a user