feat: 字段的调整和问卷跳转的处理

This commit is contained in:
2026-02-04 11:59:12 +08:00
parent 521a0bf4b3
commit 76ead609d5
5 changed files with 26 additions and 37 deletions

View File

@@ -21,6 +21,7 @@
<script setup>
import { getAccessToken } from "@/constant/token";
import { defineProps } from "vue";
import { navigateTo } from "../../router";
const props = defineProps({
toolCall: {
@@ -31,11 +32,7 @@ const props = defineProps({
const handleCall = () => {
const token = getAccessToken();
const url = `${props.toolCall.componentName}?token=${token}`;
console.log(url);
uni.navigateTo({
url: `/pages/webview/index?url=${encodeURIComponent(url)}`,
});
navigateTo(props.toolCall.data, { token: token });
};
</script>