fix: 支付/示例 queryParams 为 reactive

This commit is contained in:
dhb52 2023-08-13 21:48:41 +08:00
parent 5d364e268f
commit c7b8fdb884

View File

@ -121,7 +121,8 @@ const message = useMessage() // 消息弹窗
const loading = ref(true) // const loading = ref(true) //
const total = ref(0) // const total = ref(0) //
const list = ref([]) // const list = ref([]) //
const queryParams = ref({ //
const queryParams = reactive({
pageNo: 1, pageNo: 1,
pageSize: 10 pageSize: 10
}) })
@ -141,7 +142,7 @@ const getList = async () => {
} }
/** 支付按钮操作 */ /** 支付按钮操作 */
const handlePay = (row) => { const handlePay = (row: any) => {
router.push({ router.push({
name: 'PayCashier', name: 'PayCashier',
query: { query: {
@ -195,7 +196,7 @@ const spus = ref([
const dialogVisible = ref(false) // const dialogVisible = ref(false) //
const formLoading = ref(false) // const formLoading = ref(false) //
const formData = ref({}) // const formData = ref<any>({}) //
const formRules = { const formRules = {
spuId: [{ required: true, message: '商品编号不能为空', trigger: 'blur' }] spuId: [{ required: true, message: '商品编号不能为空', trigger: 'blur' }]
} }