File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export default defineComponent({
2525 name: ' JoinCode' ,
2626
2727 props: {
28- _id : {
28+ classroomId : {
2929 type: String ,
3030 required: true ,
3131 },
@@ -42,10 +42,10 @@ export default defineComponent({
4242 async created() {
4343 const dl = getDataLayer ();
4444
45- this .classroomDB = await dl .getClassroomDB (this ._id , ' teacher' );
45+ this .classroomDB = await dl .getClassroomDB (this .classroomId , ' teacher' );
4646 this .classroomCfg = this .classroomDB .getConfig ();
4747 await Promise .all ([]);
48- log (` Route loaded w/ (prop) _id: ${this ._id } ` );
48+ log (` Route loaded w/ (prop) _id: ${this .classroomId } ` );
4949 log (` Config:
5050 ${JSON .stringify (this .classroomCfg )} ` );
5151 this .updatePending = false ;
Original file line number Diff line number Diff line change @@ -107,9 +107,9 @@ const router = createRouter({
107107 component : ClassroomCtrlPanel ,
108108 } ,
109109 {
110- path : '/classrooms/:_id /code' ,
110+ path : '/classrooms/:classroomId /code' ,
111111 props : true ,
112- alias : '/c/:_id ' ,
112+ alias : '/c/:classroomId ' ,
113113 component : JoinCode ,
114114 } ,
115115 {
You can’t perform that action at this time.
0 commit comments