批量更新
This commit is contained in:
@@ -327,6 +327,14 @@ const previewList = computed(() =>
|
||||
imageList.value.map(img => resolveUrl(img.url))
|
||||
);
|
||||
|
||||
// ---------- 绑定提醒的状态回显与反馈 ----------
|
||||
// 注意:这两个 ref 必须声明在下方 watch 之前。
|
||||
// watch 带 immediate:true,会在 setup 执行到该处时立即回调 loadReminderInfo(),
|
||||
// 而 loadReminderInfo 同步写入 reminderInfo / reminderLoading,
|
||||
// 若此时它们尚未初始化,会抛出 "Cannot access 'x' before initialization"(暂时性死区)。
|
||||
const reminderInfo = ref(null);
|
||||
const reminderLoading = ref(false);
|
||||
|
||||
// ---------- 备注:创建 / 修改 / 完成后都可编辑 ----------
|
||||
const remarkText = ref("");
|
||||
const remarkSaving = ref(false);
|
||||
@@ -374,10 +382,7 @@ async function saveRemark() {
|
||||
}
|
||||
}
|
||||
|
||||
// ---------- 绑定提醒的状态回显与反馈 ----------
|
||||
const reminderInfo = ref(null);
|
||||
const reminderLoading = ref(false);
|
||||
|
||||
// ---------- 提醒渠道文案映射 ----------
|
||||
const channelTextMap = {
|
||||
SMS: "短信",
|
||||
EMAIL: "邮件",
|
||||
|
||||
Reference in New Issue
Block a user