byt-ui 0.1.5 → 0.1.7

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": "byt-ui",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "private": false,
5
5
  "description": "byt组件库",
6
6
  "author": {
@@ -2,7 +2,7 @@
2
2
  * @Description:
3
3
  * @Author: 王国火
4
4
  * @Date: 2022-10-18 12:37:03
5
- * @LastEditTime: 2024-04-22 14:40:35
5
+ * @LastEditTime: 2024-04-22 19:23:05
6
6
  * @LastEditors: 王国火
7
7
  */
8
8
  import Cookie from 'js-cookie'
@@ -10,7 +10,7 @@ import website from './website'
10
10
  export const getCookie = (key) => {
11
11
  const fullKey = `${website.key}-${key}`;
12
12
  return Cookie.get(fullKey, {
13
- domain: window.location.hostname
13
+ // domain: window.location.hostname
14
14
  }) || ''
15
15
  }
16
16
 
@@ -18,15 +18,15 @@ export const setCookie = (key, value, expires = 7, path = '/') => {
18
18
  const fullKey = `${website.key}-${key}`;
19
19
  return Cookie.set(fullKey, value, {
20
20
  expires,
21
- path,
22
- domain: window.location.hostname
21
+ path
22
+ // domain: window.location.hostname
23
23
  })
24
24
  }
25
25
 
26
26
  export const removeCookie = (key, path = '/') => {
27
27
  const fullKey = `${website.key}-${key}`;
28
28
  return Cookie.remove(fullKey, {
29
- path,
30
- domain: window.location.hostname
29
+ path
30
+ // domain: window.location.hostname
31
31
  })
32
32
  }