Compare commits

...

3 Commits

Author SHA1 Message Date
imeepos d55730f317 Merge branch 'master' of ssh://gitea.bowongai.com:222/bowong/bw-mini-app 2025-09-28 15:26:14 +08:00
imeepos 01c1aa1988 refactor: 简化用户执行记录获取接口
移除getUserExecutions中的用户ID验证和路径参数,直接调用/templates/executions/user接口
2025-09-28 15:16:04 +08:00
imeepos 4cfbc8cc11 fix: 修复core-js模块导出错误
禁用useBuiltIns避免core-js版本冲突导致的模块导出错误
2025-09-28 15:15:04 +08:00
2 changed files with 2 additions and 6 deletions

View File

@ -6,7 +6,7 @@ module.exports = {
framework: 'react',
ts: true,
compiler: 'vite',
useBuiltIns: process.env.TARO_ENV === 'h5' ? 'usage' : false
useBuiltIns: false
}]
]
}

View File

@ -636,11 +636,7 @@ export class SdkServer {
*/
async getUserExecutions(userId?: string): Promise<UserExecution[]> {
try {
const uid = userId || Taro.getStorageSync(TOKEN_UID_KEY);
if (!uid) {
throw new Error('用户ID不存在');
}
const response = await this.request<{ executions: UserExecution[]; total: number }>(`/templates/executions/user/${uid}`);
const response = await this.request<{ executions: UserExecution[]; total: number }>(`/templates/executions/user`);
return response.data.executions || [];
} catch (error) {
throw error;