feat: 问卷调查组件的字段调式
This commit is contained in:
@@ -20,12 +20,21 @@
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { getAccessToken } from "@/constant/token";
|
import { getAccessToken } from "@/constant/token";
|
||||||
|
import { defineProps } from "vue";
|
||||||
|
|
||||||
|
const props = defineProps({
|
||||||
|
toolCall: {
|
||||||
|
type: Object,
|
||||||
|
default: {},
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
const handleCall = () => {
|
const handleCall = () => {
|
||||||
const token = getAccessToken();
|
const token = getAccessToken();
|
||||||
|
const url = `${props.toolCall.componentName}?token=${token}`;
|
||||||
|
console.log(url);
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/webview/index?token=${token}`,
|
url: `/pages/webview/index?url=${encodeURIComponent(url)}`,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user