调整返回清理数据

This commit is contained in:
ywyonui 2025-09-22 11:23:45 +08:00
parent 2013b62832
commit 4648a0793a

View File

@ -67,7 +67,7 @@ import PreviewImage from "@/components/PreviewImage/index.vue";
import { getXkTfDetailByIdApi } from "@/api/base/xkTfApi"; import { getXkTfDetailByIdApi } from "@/api/base/xkTfApi";
import { xxtsFindByIdApi } from "@/api/base/xxtsApi"; import { xxtsFindByIdApi } from "@/api/base/xxtsApi";
const { loginByOpenId } = useUserStore(); const { loginByOpenId } = useUserStore();
const { getTf, getData } = useDataStore(); const { getTf, getData, setTf, setData } = useDataStore();
const curXs = ref<any>({}); const curXs = ref<any>({});
const xkTf = ref<any>({}); const xkTf = ref<any>({});
@ -76,6 +76,8 @@ const jfPzList = ref<any>([]);
// //
const goHome = () => { const goHome = () => {
setTf({});
setData({});
uni.reLaunch({ uni.reLaunch({
url: "/pages/base/service/index" url: "/pages/base/service/index"
}); });
@ -89,6 +91,7 @@ const initData = (tf: any, xs: any, tfQdList: any[]) => {
curXs.value = xs; curXs.value = xs;
xkTf.value = tf; xkTf.value = tf;
xkTfQdList.value = tfQdList; xkTfQdList.value = tfQdList;
console.log('initData退费', tf);
const jfPz = tf.jfPz || ''; const jfPz = tf.jfPz || '';
// //
jfPzList.value = jfPz.split(',') || []; jfPzList.value = jfPz.split(',') || [];