Skip to content

Commit 928f4cc

Browse files
committed
fix: replace encodeQueryJSON with save_btoa for query parameters in InlineList.vue
1 parent 90caba1 commit 928f4cc

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

custom/InlineList.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@
7474
name: 'resource-create',
7575
params: { resourceId: listResource.resourceId },
7676
query: {
77-
values: encodeQueryJSON(JSON.stringify({[listResourceRefColumn.name]: props.record[selfPrimaryKeyColumn.name]})),
78-
readonlyColumns: encodeQueryJSON(JSON.stringify([listResourceRefColumn.name])),
77+
values: save_btoa(JSON.stringify({[listResourceRefColumn.name]: props.record[selfPrimaryKeyColumn.name]})),
78+
readonlyColumns: save_btoa(JSON.stringify([listResourceRefColumn.name])),
7979
returnTo: $route.fullPath,
8080
},
8181
}"
@@ -131,7 +131,7 @@ import {
131131
IconPlusOutline,
132132
} from '@iconify-prerendered/vue-flowbite';
133133
import { showErrorTost, showWarningTost } from '@/composables/useFrontendApi';
134-
import { getIcon, encodeQueryJSON } from '@/utils';
134+
import { getIcon } from '@/utils';
135135
import { useI18n } from 'vue-i18n';
136136
137137
const { t } = useI18n();
@@ -336,4 +336,8 @@ onMounted( async () => {
336336
337337
});
338338
339+
function save_btoa(str) {
340+
return btoa(str);
341+
}
342+
339343
</script>

0 commit comments

Comments
 (0)