Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
SunWuyuan committed Oct 6, 2024
1 parent 29efd5d commit 44b3c3d
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 11 deletions.
7 changes: 5 additions & 2 deletions src/components/Comment.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<template>
<v-container>
<v-card
class="mb-2"
elevation
Expand Down Expand Up @@ -225,7 +224,6 @@
></v-card
>
</v-dialog>
</v-container>
</template>

<script>
Expand All @@ -249,6 +247,11 @@ export default {
required: true,
},
},
watch: {
url: function (newUrl, oldUrl) {
this.getComments({ retry: true });
},
},
data() {
return {
// 评论列表
Expand Down
2 changes: 1 addition & 1 deletion src/pages/projectlist/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</template>

<script>
import { Comment } from "../../components/Comment.vue";
import Comment from "../../components/Comment.vue";
import request from "../../axios/axios";
import { localuser } from "@/stores/user";
import ProjectsCards from "../../components/ProjectsCards.vue";
Expand Down
5 changes: 4 additions & 1 deletion src/pages/projects/[id]/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
<v-row
><v-col cols="8" md="8" lg="8" xl="8" sm="8" xs="8">
<ProjectRunner :type="project.type" :id="project.id" />
<br /><Comment :url="'project-' + $route.params.id"></Comment>
<br /><Comment
:url="'project-' + $route.params.id"
name="项目"
></Comment>
</v-col>

<v-col cols="4">
Expand Down
4 changes: 2 additions & 2 deletions src/pages/proxy/[id]/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,14 @@

<Comment
:url="'scratchmiteduproject-' + this.$route.params.id"
name="项目"
name="Scratch官网项目"
></Comment>
</v-container>
</template>

<script>
import openEditor from "../../../stores/openEdit";
import { Comment } from "../../components/Comment.vue";
import Comment from "../../../components/Comment.vue";
import request from "../../../axios/axios";
import ProjectRunner from "../../../components/ProjectRunner.vue";
Expand Down
4 changes: 2 additions & 2 deletions src/pages/proxy/studios/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -196,15 +196,15 @@

<Comment
:url="'scratchmitedustudio-' + this.$route.params.id"
name="工作室"
name="Scratch官网工作室"
></Comment>
</v-container>
</template>

<script>
import request from "../../../axios/axios";
import Projects from "../../../components/Projects.vue";
import { Comment } from "../../components/Comment.vue";
import Comment from "../../../components/Comment.vue";
import { ref } from "vue";
export default {
Expand Down
6 changes: 3 additions & 3 deletions src/pages/proxy/user/[username].vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,16 @@
</div>
<!--<Projects :authorid="userid" ref="Projects" showinfo="true"></Projects>-->
<Comment
:url="'scratchmiteduuser-' + this.$route.params.id"
name="用户"
:url="'scratchmiteduuser-' + userinfo.id"
name="Scratch官网用户"
></Comment>
</v-container>
</template>

<script>
import request from "../../../axios/axios";
import Projects from "../../../components/Projects.vue";
import { Comment } from "../../components/Comment.vue";
import Comment from "../../../components/Comment.vue";
export default {
components: { Projects, Comment },
Expand Down

0 comments on commit 44b3c3d

Please sign in to comment.