Compare commits
3 Commits
85e2a440c6
...
d55730f317
| Author | SHA1 | Date |
|---|---|---|
|
|
d55730f317 | |
|
|
01c1aa1988 | |
|
|
4cfbc8cc11 |
|
|
@ -6,7 +6,7 @@ module.exports = {
|
||||||
framework: 'react',
|
framework: 'react',
|
||||||
ts: true,
|
ts: true,
|
||||||
compiler: 'vite',
|
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[]> {
|
async getUserExecutions(userId?: string): Promise<UserExecution[]> {
|
||||||
try {
|
try {
|
||||||
const uid = userId || Taro.getStorageSync(TOKEN_UID_KEY);
|
const response = await this.request<{ executions: UserExecution[]; total: number }>(`/templates/executions/user`);
|
||||||
if (!uid) {
|
|
||||||
throw new Error('用户ID不存在');
|
|
||||||
}
|
|
||||||
const response = await this.request<{ executions: UserExecution[]; total: number }>(`/templates/executions/user/${uid}`);
|
|
||||||
return response.data.executions || [];
|
return response.data.executions || [];
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
throw error;
|
throw error;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue