mirror of
https://github.com/kuaifan/dootask.git
synced 2026-10-30 22:40:40 +00:00
悬浮按钮显示偏好改在「应用 → AI 助手」的「个人偏好」中设置,主程序删除 setting/assistant.vue、对应路由与菜单项,并清理不再使用的翻译与保存方法; 同步更新 ai-kb 与事件对照表。
11 lines
272 B
JavaScript
Vendored
11 lines
272 B
JavaScript
Vendored
function cacheKey(userId) {
|
|
return `aiAssistant.floatButtonVisible.${userId}`;
|
|
}
|
|
|
|
export function loadFloatButtonVisible(userId) {
|
|
if (userId <= 0) {
|
|
return Promise.resolve(true);
|
|
}
|
|
return $A.IDBBoolean(cacheKey(userId), true).catch(() => true);
|
|
}
|