Tcode平台改造升级-用户工作台页面样式优化及邀请你的团队功能开发

This commit is contained in:
fmk1023
2025-12-10 14:34:29 +08:00
parent 44467bc22a
commit fd4f9bc73d
16 changed files with 750 additions and 48 deletions

37
src/api/jyh/auth.ts Normal file
View File

@@ -0,0 +1,37 @@
import request from '@/utils/request';
export const getCaptcha = (account: any, password: any) => {
return request({
url: `/u-auth/index/getCaptcha`,
method: 'POST',
data: {
account,
password,
loginCode: 'admin'
},
responseType: 'blob'
});
};
export const login = (account: any, code: any, password: any) => {
return request({
url: `/u-auth/index/login`,
method: 'POST',
data: {
account,
code,
password,
loginCode: 'admin'
}
});
};
export const sendSms = (account: any) => {
return request({
url: `/u-auth/index/send-sms`,
method: 'POST',
data: {
account,
action:'login',
loginCode: 'admin'
}
});
};