yakuza0 2.22.39-beta.5 → 2.22.39-beta.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/nuxt/plugins/init_client.js +27 -3
- package/package.json +1 -1
- package/utils/secret.js +1 -1
|
@@ -28,12 +28,12 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
28
28
|
|
|
29
29
|
exports.default = function () {
|
|
30
30
|
var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(ctx) {
|
|
31
|
-
var store, $yk, $ws, app, keys, cs, clientKey;
|
|
31
|
+
var store, $yk, $ws, app, route, keys, cs, clientKey, q, ci;
|
|
32
32
|
return _regenerator2.default.wrap(function _callee3$(_context3) {
|
|
33
33
|
while (1) {
|
|
34
34
|
switch (_context3.prev = _context3.next) {
|
|
35
35
|
case 0:
|
|
36
|
-
store = ctx.store, $yk = ctx.$yk, $ws = ctx.$ws, app = ctx.app;
|
|
36
|
+
store = ctx.store, $yk = ctx.$yk, $ws = ctx.$ws, app = ctx.app, route = ctx.route;
|
|
37
37
|
|
|
38
38
|
// await set(ctx);
|
|
39
39
|
|
|
@@ -135,7 +135,31 @@ exports.default = function () {
|
|
|
135
135
|
// Cookies.set(yConf.server.stupid.v2023_12.aMark, "", {domain: $yk.appConf.cookieDomain})
|
|
136
136
|
$yk.firstRefresh = false;
|
|
137
137
|
|
|
138
|
-
|
|
138
|
+
if (route.query.__isc) {
|
|
139
|
+
q = _yakuza._.omit(route.query, ['__isc']);
|
|
140
|
+
ci = setInterval(function () {
|
|
141
|
+
// history.replaceState(q, '', route.path)
|
|
142
|
+
if (location.href.indexOf("__isc") !== -1) {
|
|
143
|
+
history.pushState(q, "", location.href.split('?')[0]);
|
|
144
|
+
}
|
|
145
|
+
}, 100);
|
|
146
|
+
|
|
147
|
+
setTimeout(function () {
|
|
148
|
+
clearInterval(ci);
|
|
149
|
+
}, 10000);
|
|
150
|
+
// route.query.__isc = ''
|
|
151
|
+
// console.log(route.path, q, 2222);
|
|
152
|
+
// const fu = location.href.replace('__isc=' + route.query.__isc ,'')
|
|
153
|
+
// // console.log(fu, 221);
|
|
154
|
+
// history.pushState(q, "", location.href.split('?')[0]);
|
|
155
|
+
// history.pushState(q, "", route.path);
|
|
156
|
+
// const a = route.path + '?' + qs.stringify(q)
|
|
157
|
+
// console.log(a);
|
|
158
|
+
// console.log(route.path, q, 111);
|
|
159
|
+
// redirect(location.href.split('?')[0], q)
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
case 18:
|
|
139
163
|
case 'end':
|
|
140
164
|
return _context3.stop();
|
|
141
165
|
}
|
package/package.json
CHANGED
package/utils/secret.js
CHANGED
|
@@ -191,7 +191,7 @@ var set = exports.set = function set(_ref3) {
|
|
|
191
191
|
req = _ref3.req,
|
|
192
192
|
res = _ref3.res,
|
|
193
193
|
route = _ref3.route,
|
|
194
|
-
|
|
194
|
+
redirect = _ref3.redirect,
|
|
195
195
|
store = _ref3.store;
|
|
196
196
|
|
|
197
197
|
return new _promise2.default(function () {
|