byt-ui 0.1.6 → 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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Description:
|
|
3
3
|
* @Author: 王国火
|
|
4
4
|
* @Date: 2022-10-18 12:37:03
|
|
5
|
-
* @LastEditTime: 2024-04-22 19:
|
|
5
|
+
* @LastEditTime: 2024-04-22 19:23:05
|
|
6
6
|
* @LastEditors: 王国火
|
|
7
7
|
*/
|
|
8
8
|
import Cookie from 'js-cookie'
|
|
@@ -14,7 +14,7 @@ export const getCookie = (key) => {
|
|
|
14
14
|
}) || ''
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export const setCookie = (key, value, expires = 7, path = '') => {
|
|
17
|
+
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,
|
|
@@ -23,7 +23,7 @@ export const setCookie = (key, value, expires = 7, path = '') => {
|
|
|
23
23
|
})
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
export const removeCookie = (key, path = '') => {
|
|
26
|
+
export const removeCookie = (key, path = '/') => {
|
|
27
27
|
const fullKey = `${website.key}-${key}`;
|
|
28
28
|
return Cookie.remove(fullKey, {
|
|
29
29
|
path
|