lw-cdp-ui 1.6.4 → 1.6.8
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/dist/assets/images/logo.svg +3 -5
- package/dist/assets/images/logo2.png +0 -0
- package/dist/assets/images/user.png +0 -0
- package/dist/components/lwLayout/components/userbar.vue +19 -19
- package/dist/lw-cdp-ui.esm.js +3967 -3897
- package/dist/lw-cdp-ui.umd.js +20 -20
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -3,11 +3,9 @@
|
|
|
3
3
|
<svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
4
|
viewBox="0 0 600 600" style="enable-background:new 0 0 600 600;" xml:space="preserve">
|
|
5
5
|
<style type="text/css">
|
|
6
|
-
.st0{fill:#D51B28;}
|
|
7
6
|
.st1{fill:#FFFFFF;}
|
|
8
7
|
</style>
|
|
9
8
|
<g>
|
|
10
|
-
<rect class="st0" width="600" height="600"/>
|
|
11
9
|
<g>
|
|
12
10
|
<path class="st1" d="M157.4,444.1h12.1v-6.9h-13.6c0-1.5,0-4.2,0-8.2h11.6V422h-5.9c1.5-2.6,3.2-5.4,5.2-8.4l-7.7-3.2
|
|
13
11
|
c-1.7,4-3.6,7.8-5.9,11.6h-7.9l5.7-2.7c-2-3.3-4-6.2-5.9-8.7l-5.9,3.2c0.8,1.2,2,3.1,3.5,5.7c0.7,1.2,1.2,2,1.5,2.5h-5.7v6.9h10.2
|
|
@@ -30,8 +28,8 @@
|
|
|
30
28
|
<rect x="230.2" y="440.4" class="st1" width="19.6" height="5"/>
|
|
31
29
|
<path class="st1" d="M271.5,423.3h-7.2v7.9h-11.1v5.9h11.1v20.3c-0.2,2.6-1.3,4-3.5,4c-1.2,0-2.6-0.1-4.2-0.2c-0.7,0-1.2,0-1.5,0
|
|
32
30
|
c0.5,1.8,1,4,1.5,6.4c3,0,5.6,0,7.9,0c4.6-0.3,6.9-3.4,6.9-9.2v-21.3h3.7v-5.9h-3.7V423.3z"/>
|
|
33
|
-
<polygon class="st1" points="261.1,410.4 253.2,410.4 253.2,414.1 240.6,414.1 240.6,410.4 232.7,410.4 232.7,414.1 217.8,414.1
|
|
34
|
-
217.8,420.5 232.7,420.5 232.7,422.8 240.6,422.8 240.6,420.5 253.2,420.5 253.2,424 261.1,424 261.1,420.5 275.7,420.5
|
|
31
|
+
<polygon class="st1" points="261.1,410.4 253.2,410.4 253.2,414.1 240.6,414.1 240.6,410.4 232.7,410.4 232.7,414.1 217.8,414.1
|
|
32
|
+
217.8,420.5 232.7,420.5 232.7,422.8 240.6,422.8 240.6,420.5 253.2,420.5 253.2,424 261.1,424 261.1,420.5 275.7,420.5
|
|
35
33
|
275.7,414.1 261.1,414.1 "/>
|
|
36
34
|
<path class="st1" d="M373,453c3.8-6.8,6-15.4,6.7-25.8h2.5v-7.2h-14.9c1-2.8,1.8-5.7,2.5-8.7l-7.9-0.7c-2.5,9.4-5.3,17.1-8.4,23
|
|
37
35
|
c-2.1-1.2-4.5-2.5-6.9-4l-2,2.7v-4h10.2v-5.9h-3.2c0.3-0.5,0.8-1.2,1.5-2c1.5-2.1,2.6-3.8,3.2-5l-5.4-3.5c-0.2,0.3-0.5,0.7-1,1.2
|
|
@@ -44,7 +42,7 @@
|
|
|
44
42
|
c0.5-1,1-2,1.5-3h3v-4.5c2.6,1.5,5.2,3.1,7.7,5l2-2.7c0.3,0.5,0.7,1.2,1.2,2.2c0.8,1.3,1.4,2.2,1.7,2.7c0.8-1.3,1.6-2.5,2.2-3.5
|
|
45
43
|
c1,4.8,2.5,9.2,4.5,13.1C360.7,456,357,458.8,352.7,461.2z M368.3,445.3c-2-4.5-3.3-9.9-4-16.3c0-0.7,0.2-1.2,0.5-1.7h7.7
|
|
46
44
|
C372.1,434.2,370.6,440.2,368.3,445.3z"/>
|
|
47
|
-
<polygon class="st1" points="480.3,446 480.3,410.9 471.8,410.9 471.8,446.8 452.8,448.5 453.8,456 471.8,454.2 471.8,468.3
|
|
45
|
+
<polygon class="st1" points="480.3,446 480.3,410.9 471.8,410.9 471.8,446.8 452.8,448.5 453.8,456 471.8,454.2 471.8,468.3
|
|
48
46
|
480.3,468.3 480.3,453.5 488.9,452.7 488.2,445.3 "/>
|
|
49
47
|
<path class="st1" d="M465.9,428.7l5.4-5.4c-3.5-3.3-6.8-6-9.9-8.2l-5,5C460,422.7,463.1,425.6,465.9,428.7z"/>
|
|
50
48
|
<path class="st1" d="M449.6,437.9l-2.7,2.5v-5h7.7v-0.2v-7.4h-7.7v-7.2c1-0.2,2.3-0.3,4-0.5c2-0.3,3.5-0.6,4.5-0.7l-2.2-6.9
|
|
Binary file
|
|
Binary file
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
<el-dropdown class="user panel-item" trigger="click" @command="handleUser">
|
|
16
16
|
<div class="user-avatar">
|
|
17
|
-
<el-avatar :size="
|
|
17
|
+
<el-avatar :size="35" :src="$store.state.user.img || empty"></el-avatar>
|
|
18
18
|
</div>
|
|
19
19
|
<template #dropdown>
|
|
20
20
|
<el-dropdown-menu>
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
</template>
|
|
42
42
|
|
|
43
43
|
<script>
|
|
44
|
-
import empty from '
|
|
45
|
-
import bu from './bu.vue'
|
|
46
|
-
import setting from './setting.vue'
|
|
47
|
-
import task from './task.vue'
|
|
44
|
+
import empty from '../../../assets/images/user.png'
|
|
45
|
+
import bu from './bu.vue'
|
|
46
|
+
import setting from './setting.vue'
|
|
47
|
+
import task from './task.vue'
|
|
48
48
|
export default {
|
|
49
49
|
props: {
|
|
50
50
|
isShowBu: {
|
|
@@ -152,25 +152,25 @@ export default {
|
|
|
152
152
|
},
|
|
153
153
|
// 清除所有相关 cookie
|
|
154
154
|
clearAllCookies() {
|
|
155
|
-
const hostname = window.location.hostname
|
|
155
|
+
const hostname = window.location.hostname
|
|
156
156
|
|
|
157
|
-
document.cookie = 'token=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/'
|
|
158
|
-
document.cookie = 'token=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=.' + hostname
|
|
159
|
-
document.cookie = 'token=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=' + hostname
|
|
157
|
+
document.cookie = 'token=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/'
|
|
158
|
+
document.cookie = 'token=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=.' + hostname
|
|
159
|
+
document.cookie = 'token=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=' + hostname
|
|
160
160
|
|
|
161
|
-
const cookies = document.cookie.split(';')
|
|
162
|
-
cookies.forEach(cookie => {
|
|
163
|
-
const eqPos = cookie.indexOf('=')
|
|
164
|
-
const name = eqPos > -1 ? cookie.substr(0, eqPos).trim() : cookie.trim()
|
|
161
|
+
const cookies = document.cookie.split(';')
|
|
162
|
+
cookies.forEach((cookie) => {
|
|
163
|
+
const eqPos = cookie.indexOf('=')
|
|
164
|
+
const name = eqPos > -1 ? cookie.substr(0, eqPos).trim() : cookie.trim()
|
|
165
165
|
if (name.includes('token') || name.includes('auth') || name.includes('session') || name.includes('user')) {
|
|
166
|
-
document.cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/'
|
|
167
|
-
document.cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=.' + hostname
|
|
168
|
-
document.cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=' + hostname
|
|
166
|
+
document.cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/'
|
|
167
|
+
document.cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=.' + hostname
|
|
168
|
+
document.cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=' + hostname
|
|
169
169
|
}
|
|
170
|
-
})
|
|
170
|
+
})
|
|
171
171
|
|
|
172
|
-
localStorage.clear()
|
|
173
|
-
sessionStorage.clear()
|
|
172
|
+
localStorage.clear()
|
|
173
|
+
sessionStorage.clear()
|
|
174
174
|
|
|
175
175
|
// 发布订阅
|
|
176
176
|
this.$bus.$emit('clearAllCookies')
|