-
+
+
+
@@ -107,7 +109,6 @@ import Comment from "../../../components/Comment.vue";
import TimeAgo from "@/components/TimeAgo.vue";
import { useHead } from "@unhead/vue";
-
export default {
components: { ProjectRunner, TimeAgo, Comment, AddTolist },
data() {
@@ -139,8 +140,7 @@ export default {
},
setup() {
useHead({
- title: '项目',
-
+ title: "项目",
});
},
async created() {
@@ -154,9 +154,8 @@ export default {
method: "get",
});
useHead({
- title: '' + this.project.title,
-
- });
+ title: "" + this.project.title,
+ });
console.log(this.project);
},
},
diff --git a/src/pages/projects/[id]/push.vue b/src/pages/projects/[id]/push.vue
index 003798f..7b2784e 100644
--- a/src/pages/projects/[id]/push.vue
+++ b/src/pages/projects/[id]/push.vue
@@ -59,11 +59,13 @@ export default {
},
setup() {
useHead({
- title: '推送',
-
+ title: "推送",
});
},
async created() {
+ if (this.localuser.islogin == false) {
+ this.$router.push("/account/login");
+ }
await this.getproject();
if (
!this.localuser.user &&
@@ -86,9 +88,8 @@ export default {
method: "get",
});
useHead({
- title: '分叉'+this.project.title,
-
- });
+ title: "分叉" + this.project.title,
+ });
console.log(this.project);
},
async pushproject(id) {
diff --git a/src/pages/projects/index.vue b/src/pages/projects/index.vue
index 705d69c..f76285c 100644
--- a/src/pages/projects/index.vue
+++ b/src/pages/projects/index.vue
@@ -1,7 +1,7 @@
+ >
import Projects from "../../components/Projects.vue";
-import { useHead } from '@unhead/vue'
+import { useHead } from "@unhead/vue";
export default {
components: { Projects },
setup() {
useHead({
- title: '项目',
-
+ title: "项目",
});
},
data() {
diff --git a/src/pages/projects/my.vue b/src/pages/projects/my.vue
index f192de1..d0849b8 100644
--- a/src/pages/projects/my.vue
+++ b/src/pages/projects/my.vue
@@ -1,4 +1,5 @@
+ {{ localuser }}
@@ -23,7 +24,7 @@
@@ -85,7 +86,7 @@
-
+
@@ -56,16 +56,18 @@