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.
@@ -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">{{ companyInfo.name }}</span>
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 {
@@ -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>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "leisure-core",
3
- "version": "0.5.94",
3
+ "version": "0.5.96",
4
4
  "description": "leisure-core是京心数据基于vue2.x开发的一套后台管理系统桌面端组件库,封装了大量实用的UI控件模板,非常方便开发者快速搭建前端应用",
5
5
  "private": false,
6
6
  "author": "北方乐逍遥(zcx7878)",