leisure-core 0.4.40 → 0.4.41
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 +8 -1
- package/le-login/src/main.vue +5 -2
- package/package.json +1 -1
package/le-home/src/main.vue
CHANGED
|
@@ -224,7 +224,14 @@ export default {
|
|
|
224
224
|
this.$store.getters.userinfo.nick || this.$store.getters.userinfo.account;
|
|
225
225
|
let tab_top_dom = document.getElementsByClassName("el-tabs_");
|
|
226
226
|
tab_top_dom[0].oncontextmenu = this.openContextMenu;
|
|
227
|
-
|
|
227
|
+
if (
|
|
228
|
+
this.companyInfo &&
|
|
229
|
+
this.companyInfo.name &&
|
|
230
|
+
this.companyInfo.name.length > 0
|
|
231
|
+
) {
|
|
232
|
+
this.$store.commit("setCname", this.companyInfo.name);
|
|
233
|
+
}
|
|
234
|
+
|
|
228
235
|
let dict = [
|
|
229
236
|
{
|
|
230
237
|
title: "是",
|
package/le-login/src/main.vue
CHANGED
|
@@ -141,8 +141,11 @@ export default {
|
|
|
141
141
|
|
|
142
142
|
loginAfter(res) {
|
|
143
143
|
if (res.data.code == "10000") {
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
let data = res.data.data;
|
|
145
|
+
if (data && data.cid && data.cid.length > 0) {
|
|
146
|
+
this.$store.commit("setCid", data.cid);
|
|
147
|
+
}
|
|
148
|
+
this.$store.commit("setUserInfo", data);
|
|
146
149
|
setToken(res.data.data.token);
|
|
147
150
|
}
|
|
148
151
|
},
|