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/lib/byt-ui.common.js
CHANGED
|
@@ -94431,7 +94431,7 @@ var website = __webpack_require__(17021);
|
|
|
94431
94431
|
* @Description:
|
|
94432
94432
|
* @Author: 王国火
|
|
94433
94433
|
* @Date: 2022-10-18 12:37:03
|
|
94434
|
-
* @LastEditTime: 2024-04-22 19:
|
|
94434
|
+
* @LastEditTime: 2024-04-22 19:23:05
|
|
94435
94435
|
* @LastEditors: 王国火
|
|
94436
94436
|
*/
|
|
94437
94437
|
|
|
@@ -94442,7 +94442,7 @@ const getCookie = key => {
|
|
|
94442
94442
|
// domain: window.location.hostname
|
|
94443
94443
|
}) || '';
|
|
94444
94444
|
};
|
|
94445
|
-
const setCookie = (key, value, expires = 7, path = '') => {
|
|
94445
|
+
const setCookie = (key, value, expires = 7, path = '/') => {
|
|
94446
94446
|
const fullKey = `${website["default"].key}-${key}`;
|
|
94447
94447
|
return api.set(fullKey, value, {
|
|
94448
94448
|
expires,
|
|
@@ -94450,7 +94450,7 @@ const setCookie = (key, value, expires = 7, path = '') => {
|
|
|
94450
94450
|
// domain: window.location.hostname
|
|
94451
94451
|
});
|
|
94452
94452
|
};
|
|
94453
|
-
const removeCookie = (key, path = '') => {
|
|
94453
|
+
const removeCookie = (key, path = '/') => {
|
|
94454
94454
|
const fullKey = `${website["default"].key}-${key}`;
|
|
94455
94455
|
return api.remove(fullKey, {
|
|
94456
94456
|
path
|
package/lib/byt-ui.umd.js
CHANGED
|
@@ -94441,7 +94441,7 @@ var website = __webpack_require__(4522);
|
|
|
94441
94441
|
* @Description:
|
|
94442
94442
|
* @Author: 王国火
|
|
94443
94443
|
* @Date: 2022-10-18 12:37:03
|
|
94444
|
-
* @LastEditTime: 2024-04-22 19:
|
|
94444
|
+
* @LastEditTime: 2024-04-22 19:23:05
|
|
94445
94445
|
* @LastEditors: 王国火
|
|
94446
94446
|
*/
|
|
94447
94447
|
|
|
@@ -94452,7 +94452,7 @@ const getCookie = key => {
|
|
|
94452
94452
|
// domain: window.location.hostname
|
|
94453
94453
|
}) || '';
|
|
94454
94454
|
};
|
|
94455
|
-
const setCookie = (key, value, expires = 7, path = '') => {
|
|
94455
|
+
const setCookie = (key, value, expires = 7, path = '/') => {
|
|
94456
94456
|
const fullKey = `${website["default"].key}-${key}`;
|
|
94457
94457
|
return api.set(fullKey, value, {
|
|
94458
94458
|
expires,
|
|
@@ -94460,7 +94460,7 @@ const setCookie = (key, value, expires = 7, path = '') => {
|
|
|
94460
94460
|
// domain: window.location.hostname
|
|
94461
94461
|
});
|
|
94462
94462
|
};
|
|
94463
|
-
const removeCookie = (key, path = '') => {
|
|
94463
|
+
const removeCookie = (key, path = '/') => {
|
|
94464
94464
|
const fullKey = `${website["default"].key}-${key}`;
|
|
94465
94465
|
return api.remove(fullKey, {
|
|
94466
94466
|
path
|