From 861e48a6d0f03c1a911bb4e4ba3c3c4ee9e56b10 Mon Sep 17 00:00:00 2001
From: pplok <1162963624@qq.com>
Date: Sun, 19 Jan 2020 11:26:32 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/IndexFind.vue | 31 ++++++++++++++++++-------------
src/components/IndexList.vue | 8 ++++++--
src/components/indexFollow.vue | 10 +++++++---
src/components/indexFollow1.vue | 8 ++++++--
src/components/indexfindall.vue | 10 +++++++---
src/index.vue | 8 +++++---
6 files changed, 49 insertions(+), 26 deletions(-)
diff --git a/src/IndexFind.vue b/src/IndexFind.vue
index 605558f..4e76fee 100644
--- a/src/IndexFind.vue
+++ b/src/IndexFind.vue
@@ -21,10 +21,12 @@
>
-
-
-
{{text}}
-
+
+
+ {{text}}
+
@@ -40,10 +42,12 @@
>
-
-
-
{{text}}
-
+
+
+ {{text}}
+
diff --git a/src/components/IndexList.vue b/src/components/IndexList.vue
index ccb3961..ac71c3d 100644
--- a/src/components/IndexList.vue
+++ b/src/components/IndexList.vue
@@ -238,7 +238,9 @@ export default {
status: 1
}).then((res)=>{
if(res.data.code != 200){
- return ;
+ this.$router.push({
+ path:"/login"
+ })
}
if(this.islike){
this.like = parseInt(this.like) - 1
@@ -256,7 +258,9 @@ export default {
id:this.id
}).then((res)=>{
if(res.data.code != 200){
- return ;
+ this.$router.push({
+ path:"/login"
+ })
}
if(this.iscllect){
this.collect = parseInt(this.collect) - 1
diff --git a/src/components/indexFollow.vue b/src/components/indexFollow.vue
index 47a7ebf..e786259 100644
--- a/src/components/indexFollow.vue
+++ b/src/components/indexFollow.vue
@@ -130,7 +130,7 @@
}
}
> div:last-child {
- margin-left: 300px;
+ margin-left: 150px;
margin-right: 0;
}
}
@@ -206,7 +206,9 @@ export default {
status: 1
}).then((res)=>{
if(res.data.code != 200){
- return ;
+ this.$router.push({
+ path:"/login"
+ })
}
if(this.islike){
this.like = parseInt(this.like) - 1
@@ -224,7 +226,9 @@ export default {
id:this.sid
}).then((res)=>{
if(res.data.code != 200){
- return ;
+ this.$router.push({
+ path:"/login"
+ })
}
if(this.iscllect){
this.collect = parseInt(this.collect) - 1
diff --git a/src/components/indexFollow1.vue b/src/components/indexFollow1.vue
index c1a0305..8e19769 100644
--- a/src/components/indexFollow1.vue
+++ b/src/components/indexFollow1.vue
@@ -264,7 +264,9 @@ export default {
status: 1
}).then((res)=>{
if(res.data.code != 200){
- return ;
+ this.$router.push({
+ path:"/login"
+ })
}
if(this.islike){
this.like = parseInt(this.like) - 1
@@ -282,7 +284,9 @@ export default {
id:this.$route.query.id
}).then((res)=>{
if(res.data.code != 200){
- return ;
+ this.$router.push({
+ path:"/login"
+ })
}
if(this.iscllect){
this.collect = parseInt(this.collect) - 1
diff --git a/src/components/indexfindall.vue b/src/components/indexfindall.vue
index 5a194de..e97b095 100644
--- a/src/components/indexfindall.vue
+++ b/src/components/indexfindall.vue
@@ -73,8 +73,10 @@ export default {
status: 1
}).then((res)=>{
if(res.data.code != 200){
- return ;
- }
+ this.$router.push({
+ path:"/login"
+ })
+}
if(this.islike){
this.like = parseInt(this.like) - 1
}else{
@@ -91,7 +93,9 @@ export default {
id:this.id
}).then((res)=>{
if(res.data.code != 200){
- return ;
+ this.$router.push({
+ path:"/login"
+ })
}
if(this.iscllect){
this.collect = parseInt(this.collect) - 1
diff --git a/src/index.vue b/src/index.vue
index 1c046b3..f83578b 100644
--- a/src/index.vue
+++ b/src/index.vue
@@ -21,9 +21,11 @@
>
-
-
- {{text}}
+
+
+ {{text}}