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