Spaces:
Running
Running
Upload 8 files
Browse files- src/views/StudentView.js +1 -2
src/views/StudentView.js
CHANGED
|
@@ -817,8 +817,7 @@ window.triggerEvolution = async (currentStage, nextStage, likes, classSize, curr
|
|
| 817 |
|
| 818 |
} catch (e) {
|
| 819 |
console.error(e);
|
| 820 |
-
|
| 821 |
-
alert("進化失敗...");
|
| 822 |
// Re-render instead of reload to keep state
|
| 823 |
const app = document.querySelector('#app');
|
| 824 |
if (app) app.innerHTML = await renderStudentView();
|
|
|
|
| 817 |
|
| 818 |
} catch (e) {
|
| 819 |
console.error(e);
|
| 820 |
+
alert("進化失敗: " + (e.message || "未知錯誤"));
|
|
|
|
| 821 |
// Re-render instead of reload to keep state
|
| 822 |
const app = document.querySelector('#app');
|
| 823 |
if (app) app.innerHTML = await renderStudentView();
|