請依照以下詳細步驟,一步步完成設定,讓您的數位白板順利運作。
</>)。firebaseConfig 物件。const firebaseConfig = { ... }; 程式碼區塊。whiteboard.html 檔案,找到 <script type="module"> 區塊,將您剛剛複製的內容,完整地貼上來取代掉預設的佔位符。rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /sessions/{sessionId} {
// 允許已登入用戶讀取、建立、更新、刪除session文件
allow read, create, update, delete: if request.auth != null;
// 允許已登入用戶操作所有子集合(participants, canvasObjects等)
match /{document=**} {
allow read, create, update, delete: if request.auth != null;
}
}
}
}
完成以上五個步驟後,請重新整理 whiteboard.html 頁面即可開始使用!
處理中...