w-ui-v1 1.0.79 → 1.0.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "w-ui-v1",
3
- "version": "1.0.79",
3
+ "version": "1.0.81",
4
4
  "description": "w-ui",
5
5
  "author": "wgxshh",
6
6
  "license": "ISC",
@@ -47,7 +47,8 @@ const pageData = ref<{
47
47
  onLoad((option: any) => {
48
48
  sourceId.value = props.sourceId || option.sourceId
49
49
  mainCode.value = props.mainCode ||option.mainCode
50
- query.value=props.query || option.query
50
+ query.value=props.query || (option.query?JSON.parse(option.query).join('&'):'')
51
+ console.log(sourceId.value, mainCode.value,query.value)
51
52
  uni.setNavigationBarTitle({ title: option.pageTitle })
52
53
  getPageConfig()
53
54
  })
@@ -94,7 +95,7 @@ async function queryList(pageNo: number, pageSize: number) {
94
95
  // paging.value.reload() // 手动触发加载
95
96
  // })
96
97
  try {
97
- console.log(sourceId.value, mainCode.value,query.value)
98
+
98
99
  const key = await getPageKey(sourceId.value, mainCode.value,query.value)// 获取key
99
100
  const data = await getPageData(key.data?.key, pageNo, pageSize)// 获取数据
100
101
  // const count = await getPageTotal(key.data?.key)// 获取总数