Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: "d" is read-only 错误 #146

Open
sand1018 opened this issue Jul 4, 2024 · 2 comments
Open

TypeError: "d" is read-only 错误 #146

sand1018 opened this issue Jul 4, 2024 · 2 comments

Comments

@sand1018
Copy link

sand1018 commented Jul 4, 2024

编译平台
pnpm

VUE版本
vue3

运行平台
微信小程序

z-paging版本
2.7.10

问题描述
在微信小程序开发者工具中,勾选 js 转es5,执行 reload方法 , 出现 TypeError: "d" is read-only 错误,取消 js 转 es5 就不会出错

image

@Wangxq0614
Copy link

生成器函数的问题,暂时可以先使用.then可以解决。

使用

function handleQueryList(pageNo) {
    getGoodsList({ page: pageNo }).then(({ items }) => {
      pagingRef.value.complete(items)
    })
  }

而不是

async function handleQueryList(pageNo) {
    const {items} = await getGoodsList({ page: pageNo })
    pagingRef.value.complete(items)
}

@wyl086
Copy link

wyl086 commented Nov 19, 2024

我出现了 TypeError: "t" is read-only

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants