leisure-core 0.5.94 → 0.5.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/le-home/src/main.vue +7 -1
- package/le-login/src/main.vue +2 -1
- package/package.json +1 -1
package/le-home/src/main.vue
CHANGED
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
<el-row>
|
|
5
5
|
<el-col :span="18" class="leftsection">
|
|
6
6
|
<div class="grid-content bg-purple">
|
|
7
|
-
<span class="userinfo-inner">{{
|
|
7
|
+
<span class="userinfo-inner" @click="clickLeftTop">{{
|
|
8
|
+
companyInfo.name
|
|
9
|
+
}}</span>
|
|
8
10
|
</div>
|
|
9
11
|
</el-col>
|
|
10
12
|
<el-col :span="6" class="rightsection">
|
|
@@ -451,6 +453,9 @@ export default {
|
|
|
451
453
|
shouldShowTooltip(text) {
|
|
452
454
|
return text && text.length > 8;
|
|
453
455
|
},
|
|
456
|
+
clickLeftTop() {
|
|
457
|
+
this.$emit("clickLeftTop");
|
|
458
|
+
},
|
|
454
459
|
},
|
|
455
460
|
};
|
|
456
461
|
</script>
|
|
@@ -515,6 +520,7 @@ export default {
|
|
|
515
520
|
|
|
516
521
|
.userinfo-inner {
|
|
517
522
|
margin-left: 20px;
|
|
523
|
+
cursor: pointer;
|
|
518
524
|
}
|
|
519
525
|
|
|
520
526
|
.userinfo-inner-t {
|
package/le-login/src/main.vue
CHANGED
|
@@ -147,6 +147,7 @@ export default {
|
|
|
147
147
|
this.$store.commit("setCid", data.cid);
|
|
148
148
|
}
|
|
149
149
|
this.$store.commit("setUserInfo", data);
|
|
150
|
+
this.$emit("loginAfter", data);
|
|
150
151
|
setToken(res.data.data.token);
|
|
151
152
|
}
|
|
152
153
|
},
|
|
@@ -155,7 +156,7 @@ export default {
|
|
|
155
156
|
},
|
|
156
157
|
getUserInfo() {
|
|
157
158
|
return this.formdata;
|
|
158
|
-
}
|
|
159
|
+
},
|
|
159
160
|
},
|
|
160
161
|
};
|
|
161
162
|
</script>
|