feat: 字段的调整和问卷跳转的处理
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user