bt-core-app 1.4.549 → 1.4.550
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/bt-core-app.js +8 -3
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/bt-core-app.js
CHANGED
|
@@ -8830,9 +8830,14 @@ function kx(e) {
|
|
|
8830
8830
|
function m(k) {
|
|
8831
8831
|
l.value = void 0, b(), k != null && e.router != null && e.router.currentRoute.value.path != k && e.router.push({ path: k });
|
|
8832
8832
|
}
|
|
8833
|
-
function g(k) {
|
|
8834
|
-
const
|
|
8835
|
-
w() || !
|
|
8833
|
+
function g(k, S) {
|
|
8834
|
+
const M = et(l);
|
|
8835
|
+
if (w() || !M.isLoggedIn) {
|
|
8836
|
+
m();
|
|
8837
|
+
let I = f(k);
|
|
8838
|
+
S != null && (I.includes("?") || (I = I + "?"), I = I + new URLSearchParams(S).toString()), window.location.href = I;
|
|
8839
|
+
} else
|
|
8840
|
+
!el(k) && e.router != null && e.router.push({ path: k });
|
|
8836
8841
|
}
|
|
8837
8842
|
async function y() {
|
|
8838
8843
|
return e.testToken ?? (e.testToken = async () => {
|
package/dist/index.d.ts
CHANGED
|
@@ -160,7 +160,7 @@ export declare interface BTAuth {
|
|
|
160
160
|
getAuthorizeUrl: (redirectPath?: string) => string;
|
|
161
161
|
getToken: (code?: string, state?: string) => Promise<void>;
|
|
162
162
|
isLoggedIn: ComputedRef<boolean>;
|
|
163
|
-
login: (redirectPath?: string) => void;
|
|
163
|
+
login: (redirectPath?: string, query?: any) => void;
|
|
164
164
|
logout: (navNameRedirect?: string) => void;
|
|
165
165
|
resetAuthState: () => void;
|
|
166
166
|
setAuth: (jwtToken?: string) => void;
|
package/package.json
CHANGED