Skip to content

Commit

Permalink
[Feat] HC-228 스레드에서 캔버스 링크 클릭시 이동
Browse files Browse the repository at this point in the history
  • Loading branch information
sseho committed Oct 29, 2024
1 parent 4dad45d commit 5d297cf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/thread/ThreadLineComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,11 @@

<!-- 캔버스 -->
<div class="canvas-group" v-if="thread.canvasTitle">
<div class="canvas">
<button class="canvas" @click="moveToCanvas">
<v-icon>mdi-file-document</v-icon>
<div class="title2">{{thread.canvasTitle}}</div>
<div class="subtitle">캔버스</div>
</div>
</button>
</div>

<!-- 파일 -->
Expand Down Expand Up @@ -468,6 +468,10 @@ import axios from '@/services/axios';
}
});
},
moveToCanvas(){
const channelId = localStorage.getItem('channelId');
this.$router.push(`/channel/${channelId}/canvas/view/${this.thread.canvasId}`);
},
},
};
</script>
Expand Down

0 comments on commit 5d297cf

Please sign in to comment.