Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
SunWuyuan committed Oct 27, 2024
1 parent 64e96dc commit 5fe4c3b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
21 changes: 10 additions & 11 deletions src/pages/projects/[id]/index.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
<template>
<v-container>
<v-row
><v-col cols="8" md="8" lg="8" xl="8" sm="8" xs="8">
><v-col xs="12" sm="12" md="8" lg="8" xl="8" xxl="8" cols="12" >
<ProjectRunner :type="project.type" :id="project.id" />
<br /><Comment
:url="'project-' + $route.params.id"
name="项目"
></Comment>
</v-col>

<v-col cols="4">
<v-col xs="12" sm="12" md="4" lg="4" xl="4" xxl="8" cols="12" >
<v-card hover border
><v-card-item>
<v-card-title>{{ project.title }}</v-card-title>
Expand All @@ -30,7 +25,9 @@
<v-chip pill prepend-icon="mdi-eye"
>{{ project.view_count }}浏览</v-chip
>
<v-chip pill prepend-icon="mdi-clock"><TimeAgo :date="project.time " /></v-chip>
<v-chip pill prepend-icon="mdi-clock"
><TimeAgo :date="project.time"
/></v-chip>
</div>
<div class="px-4 d-flex ga-2 mb-2">
<v-chip pill prepend-icon="mdi-xml" v-if="project.state == 'public'"
Expand Down Expand Up @@ -65,7 +62,7 @@
</div>

<div class="px-4">
<v-card hover :to="'/user/' + project.authorid" border>
<v-card hover :to="'/user/' + project.authorid" border>
<v-card-item>
<template v-slot:prepend>
<v-avatar>
Expand All @@ -91,7 +88,9 @@
<br />
</v-card>
<br />
<v-card hover border><AddTolist></AddTolist></v-card>
<v-card hover border><AddTolist></AddTolist></v-card> </v-col
><v-col xxl="8" xl="8" lg="8" md="8" sm="12" xs="12" cols="12">
<Comment :url="'project-' + $route.params.id" name="项目"></Comment>
</v-col>
</v-row>
</v-container>
Expand All @@ -107,7 +106,7 @@ import AddTolist from "../../../components/AddTolist.vue";
import Comment from "../../../components/Comment.vue";
import TimeAgo from "@/components/TimeAgo.vue";
export default {
components: { ProjectRunner,TimeAgo, Comment, AddTolist },
components: { ProjectRunner, TimeAgo, Comment, AddTolist },
data() {
return {
project: {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/projects/index.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<v-container>
<v-row
><v-col cols="6">
><v-col cols="6" >
<v-text-field
:label="'作品名 包含:' + search.title"
v-model="search.title"
Expand Down

0 comments on commit 5fe4c3b

Please sign in to comment.