Skip to content

Commit

Permalink
fix(home): jump to phone through phone preview
Browse files Browse the repository at this point in the history
  • Loading branch information
pearmini authored and Angelii committed Dec 19, 2021
1 parent 16db871 commit 0517321
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
>
<el-carousel-item v-for="example in phoneExamples" :key="example.mode">
<div
@click="handleSelectExample(example)"
@click="handleSelectExample(example, 'phone')"
:style="{
cursor: progress >= 1 ? 'pointer' : 'default',
}"
Expand Down Expand Up @@ -173,9 +173,9 @@ export default {
path: "/editor",
});
},
handleSelectExample(example) {
handleSelectExample(example, activeType) {
if (this.progress < 1) return;
gotoEditor(this.$router, example);
gotoEditor(this.$router, example, activeType);
},
handleStory() {
this.$router.push({
Expand Down

0 comments on commit 0517321

Please sign in to comment.