From d7c3f8f870d67f300339cf7f3e35d9f1c96bf701 Mon Sep 17 00:00:00 2001 From: dhb52 Date: Sun, 13 Aug 2023 21:48:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=94=AF=E4=BB=98/=E7=A4=BA=E4=BE=8B=20?= =?UTF-8?q?queryParams=20=E4=B8=BA=20reactive?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit c7b8fdb88483e274e3eee0536e4c0ca311479eca) --- src/views/pay/demo/index.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/pay/demo/index.vue b/src/views/pay/demo/index.vue index f99d13c4..374464eb 100644 --- a/src/views/pay/demo/index.vue +++ b/src/views/pay/demo/index.vue @@ -121,7 +121,8 @@ const message = useMessage() // 消息弹窗 const loading = ref(true) // 列表的加载中 const total = ref(0) // 列表的总页数 const list = ref([]) // 列表的数据 -const queryParams = ref({ +// 查询条件 +const queryParams = reactive({ pageNo: 1, pageSize: 10 }) @@ -141,7 +142,7 @@ const getList = async () => { } /** 支付按钮操作 */ -const handlePay = (row) => { +const handlePay = (row: any) => { router.push({ name: 'PayCashier', query: { @@ -195,7 +196,7 @@ const spus = ref([ const dialogVisible = ref(false) // 弹窗的是否展示 const formLoading = ref(false) // 表单的加载中 -const formData = ref({}) // 表单数据 +const formData = ref({}) // 表单数据 const formRules = { spuId: [{ required: true, message: '商品编号不能为空', trigger: 'blur' }] }