Compare commits
3 Commits
85e2a440c6
...
d55730f317
| Author | SHA1 | Date |
|---|---|---|
|
|
d55730f317 | |
|
|
01c1aa1988 | |
|
|
4cfbc8cc11 |
|
|
@ -6,7 +6,7 @@ module.exports = {
|
|||
framework: 'react',
|
||||
ts: true,
|
||||
compiler: 'vite',
|
||||
useBuiltIns: process.env.TARO_ENV === 'h5' ? 'usage' : false
|
||||
useBuiltIns: false
|
||||
}]
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue