system-clients 3.2.44 → 3.2.45

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "system-clients",
3
- "version": "3.2.44",
3
+ "version": "3.2.45",
4
4
  "description": "系统基础框架",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -4,6 +4,10 @@
4
4
  <div class="row auto">
5
5
  <marquee style="width:80%;margin-top:25px"><span style="font-size: 1.8rem;color: white;">{{notice}}</span></marquee>
6
6
  <div class="login-title-chi" style="white-space: nowrap;margin-right:-5%">
7
+ <button class="my_button_search button_spacing" style="margin-right: 5px" title="点击清除浏览器缓存" @click.stop="delCookie">
8
+ <img
9
+ src="../../assets/clear-cookie.png" style="height: 25px; width: 95px;margin-bottom: 3px;">
10
+ </button>
7
11
  <div v-if="titleShow">
8
12
  <img src="../../../static/newStyle/login-info.png"/>
9
13
  <span @click="showus=true">关于我们</span>
@@ -332,6 +336,31 @@ export default {
332
336
  }
333
337
  },
334
338
  methods: {
339
+ delCookie() {
340
+ let cookies = document.cookie.split(";");
341
+ console.log("点击触发了")
342
+ for (let i = 0; i < cookies.length; i++) {
343
+ let cookie = cookies[i];
344
+ let eqPos = cookie.indexOf("=");
345
+ let name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie;
346
+ document.cookie =
347
+ name + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/";
348
+ }
349
+ if (cookies.length > 0) {
350
+ for (let i = 0; i < cookies.length; i++) {
351
+ let cookie = cookies[i];
352
+ let eqPos = cookie.indexOf("=");
353
+ let name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie;
354
+ let domain = location.host.substr(location.host.indexOf("."));
355
+ document.cookie =
356
+ name +
357
+ "=;expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=" +
358
+ domain;
359
+ }
360
+ }
361
+ localStorage.clear()
362
+ sessionStorage.clear()
363
+ },
335
364
  async getDaiBan(){
336
365
  let http = new HttpResetClass()
337
366
  let condition = ''
@@ -513,6 +542,8 @@ export default {
513
542
  </script>
514
543
 
515
544
  <style>
545
+ .my_button_search{width: 100px; height: 25px;position: relative; padding-left:2px;top: 0px;line-height: 25px; background:rgba(0,0,0,0); border-radius: 4px; border:none; font-family: PingFang; font-size: 15px}
546
+ .my_button_search:hover img{ filter: opacity(0.8);}
516
547
  .loginmain-title {
517
548
  height: fit-content;
518
549
  float: left;