Skip to content

Commit 4fbf6d1

Browse files
authored
fix: production publicUrl fetch problem
1 parent f44089a commit 4fbf6d1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/routes/home/profile.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,14 +191,11 @@ function ProfilePage() {
191191
if (!publicUrlData || !publicUrlData.publicUrl) {
192192
throw new Error('無法取得背景照公開網址');
193193
}
194-
else{
195-
console.log(publicUrlData.publicUrl);
196-
}
197194

198195
const userController = new UserController();
199196
await userController.updateUser(profile.id, { profileBackground: publicUrlData.publicUrl });
200197
setShowBgModal(false);
201-
// window.location.reload();
198+
window.location.reload();
202199
} catch (err) {
203200
alert('背景照上傳失敗');
204201
}

0 commit comments

Comments
 (0)