feat: 顯示連結在table上

This commit is contained in:
snsd0805 2021-07-25 18:16:05 +08:00
parent d289a7af55
commit ed7bad423c
No known key found for this signature in database
GPG Key ID: 643DB36C1D5F3F10
2 changed files with 5 additions and 2 deletions

View File

@ -171,7 +171,8 @@ var mainWindow = {
'temp': false,
'number': course.number,
'class': course.class,
'credit': course.credit
'credit': course.credit,
'link': course.link
})
}
this.creditNum += parseFloat(course.credit)

View File

@ -3,6 +3,7 @@ var courseDiv = {
template: `
<div style='border: 5px #1abc9c solid; text-align: center;'>
{{ course.name }}
<a v-bind:href="course.link" target="_blank"><i class="fas fa-info-circle"></i></a>
<button type="button"
v-if="!is_shared"
v-on:click="$emit('remove-course', course)"
@ -55,7 +56,8 @@ var courseTable = {
'number': c.number,
'class': c.class,
'temp': c.temp,
'credit': c.credit
'credit': c.credit,
'link': c.link
}
if(c.time[0]==6 || c.time[0]==7){