diff --git a/src/components/PersonCard.vue b/src/components/PersonCard.vue
index 3b9e78c..1a9e5f1 100644
--- a/src/components/PersonCard.vue
+++ b/src/components/PersonCard.vue
@@ -4,7 +4,7 @@
-
+
@@ -67,6 +70,20 @@ export default {
this.personInfo = info;
this.pcCurrent = info.id;
},
+ personCardSort(id) {
+ if (id !== this.personList[0].id) {
+ console.log(id);
+ let nowPersonInfo;
+ for (let i = 0; i < this.personList.length; i++) {
+ if (this.personList[i].id == id) {
+ nowPersonInfo = this.personList[i];
+ this.personList.splice(i, 1);
+ break;
+ }
+ }
+ this.personList.unshift(nowPersonInfo);
+ }
+ },
},
};
@@ -104,7 +121,7 @@ export default {
}
.chatRight {
- flex:1;
+ flex: 1;
padding-right: 30px;
.showIcon {
position: absolute;