adata-ui 4.0.34 → 4.0.35
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/module.json
CHANGED
|
@@ -3,6 +3,9 @@ import AButton from "../button/Button.vue";
|
|
|
3
3
|
import { useAppConfig, useI18n } from "#imports";
|
|
4
4
|
import { navigateTo } from "#app";
|
|
5
5
|
import { useLocalePath } from "#i18n";
|
|
6
|
+
const props = defineProps({
|
|
7
|
+
redirectPath: { type: String, required: true }
|
|
8
|
+
});
|
|
6
9
|
const emit = defineEmits(["close"]);
|
|
7
10
|
const { t } = useI18n();
|
|
8
11
|
const appConfig = useAppConfig();
|
|
@@ -10,7 +13,7 @@ const mode = appConfig.adataUI.mode;
|
|
|
10
13
|
const localePath = useLocalePath();
|
|
11
14
|
function logIn() {
|
|
12
15
|
const fullPath = encodeURIComponent(window.location.toString());
|
|
13
|
-
return navigateTo(localePath(`https://id.${mode}.kz/?url=${fullPath}`), { external: true });
|
|
16
|
+
return navigateTo(localePath(`https://id.${mode}.kz/?url=${fullPath}/${props.redirectPath}`), { external: true });
|
|
14
17
|
}
|
|
15
18
|
function register() {
|
|
16
19
|
return navigateTo(localePath(`https://id.${mode}.kz/register`), { external: true });
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
redirectPath: string;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
2
5
|
export default _default;
|