()
| 485 | } |
| 486 | |
| 487 | function ensureUser() { |
| 488 | const userId = activeUser(); |
| 489 | if (!userId) { |
| 490 | throw new Error("请先创建或选择一个用户画像。"); |
| 491 | } |
| 492 | return userId; |
| 493 | } |
| 494 | |
| 495 | function switchView(name) { |
| 496 | const targetView = $(name); |
no test coverage detected