refactor(api): 移除未使用的配置接口及相关Hook

- 从cmsWebsiteField接口中删除configWebsiteField方法
- 删除useConfig自定义Hook及其引用
- 更新about页面,去除对config对象和useConfig的使用
- 修正invite模块请求URL,统一加上/api前缀
This commit is contained in:
2026-04-11 19:50:52 +08:00
parent b06552eaf1
commit a568b9d9df
4 changed files with 5 additions and 75 deletions

View File

@@ -79,11 +79,11 @@ const InvitePage: React.FC = () => {
const fetchInviteInfo = async (inviteToken: string) => {
try {
console.log('开始获取邀请信息, token:', inviteToken);
console.log('请求URL:', `${SERVER_API_URL}/api/_app/developer/invite/info?token=${encodeURIComponent(inviteToken)}`);
console.log('请求URL:', `${INVITE_API_URL}/api/developer/invite/info?token=${encodeURIComponent(inviteToken)}`);
console.log('请求头:', { 'content-type': 'application/json', TenantId });
const res = await Taro.request({
url: `${INVITE_API_URL}/developer/invite/info?token=${encodeURIComponent(inviteToken)}`,
url: `${INVITE_API_URL}/api/developer/invite/info?token=${encodeURIComponent(inviteToken)}`,
method: 'GET',
header: {
'content-type': 'application/json',
@@ -142,7 +142,7 @@ const InvitePage: React.FC = () => {
setAuthLoading(true);
const res = await Taro.request({
url: `${INVITE_API_URL}/developer/invite/accept`,
url: `${INVITE_API_URL}/api/developer/invite/accept`,
method: 'POST',
data: {
token,