|
77 | 77 | import GroupRow from '@/components/GroupRow.vue'; |
78 | 78 | import LecturerRow from '@/components/LecturerRow.vue'; |
79 | 79 | import RoomRow from '@/components/RoomRow.vue'; |
| 80 | +
|
80 | 81 | export default { |
81 | 82 | components: { LecturerRow, RoomRow, GroupRow }, |
82 | 83 | data() { |
@@ -104,7 +105,6 @@ export default { |
104 | 105 | document.dispatchEvent(changeHeaderLayoutEvent); |
105 | 106 | }, |
106 | 107 | }, |
107 | | -
|
108 | 108 | beforeMount() { |
109 | 109 | this.loadEventInfo(); |
110 | 110 | console.log(this.eventInfo); |
@@ -155,41 +155,9 @@ export default { |
155 | 155 | }, |
156 | 156 | clickRoom(roomId) { |
157 | 157 | this.$router.push(`/timetable/room/${roomId}`); |
158 | | - try { |
159 | | - fetch(`${process.env.VUE_APP_API_MARKETING}/action`, { |
160 | | - method: 'POST', |
161 | | - cache: 'no-cache', |
162 | | - redirect: 'follow', |
163 | | - headers: { 'Content-Type': 'application/json' }, |
164 | | - body: JSON.stringify({ |
165 | | - user_id: localStorage.getItem('marketing-id'), |
166 | | - action: 'route to', |
167 | | - path_from: '/timetable', |
168 | | - path_to: '/timetable/room', |
169 | | - }), |
170 | | - }); |
171 | | - } catch { |
172 | | - //Failed, skips |
173 | | - } |
174 | 158 | }, |
175 | 159 | clickLecturer(lecturerId) { |
176 | 160 | this.$router.push(`/timetable/lecturer/${lecturerId}`); |
177 | | - try { |
178 | | - fetch(`${process.env.VUE_APP_API_MARKETING}/action`, { |
179 | | - method: 'POST', |
180 | | - cache: 'no-cache', |
181 | | - redirect: 'follow', |
182 | | - headers: { 'Content-Type': 'application/json' }, |
183 | | - body: JSON.stringify({ |
184 | | - user_id: localStorage.getItem('marketing-id'), |
185 | | - action: 'route to', |
186 | | - path_from: '/timetable', |
187 | | - path_to: '/timetable/lecturer', |
188 | | - }), |
189 | | - }); |
190 | | - } catch { |
191 | | - //Failed, skips |
192 | | - } |
193 | 161 | }, |
194 | 162 | getCurComments() { |
195 | 163 | let cur = this.comments[this.eventId]; |
|
0 commit comments