vue自定义Hooks #10894
Unanswered
chengPengFei123
asked this question in
Help/Questions
vue自定义Hooks
#10894
Replies: 1 comment
-
Please provide a minimal reproduction. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
我在vue3 hooks文件里面声明了ref的布尔值,在利用接口返回数据赋值这个布尔值,但是在用这个hooks文件的时候会有警告Write operation failed: computed value is readonly,然而,我并没有声明computed
![1](https://private-user-images.githubusercontent.com/111270777/329109429-6cb22335-fa0e-4a26-8e8e-5ae49d1453c6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg1MTYyNDYsIm5iZiI6MTcxODUxNTk0NiwicGF0aCI6Ii8xMTEyNzA3NzcvMzI5MTA5NDI5LTZjYjIyMzM1LWZhMGUtNGEyNi04ZThlLTVhZTQ5ZDE0NTNjNi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjE2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYxNlQwNTMyMjZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00ZTlhZjRiNmYxY2E2ZmNiOTQzOTU3MjFmZWUxNDAyY2ZjYmEzMTgxMjZiNTMzMTIwMmJjYjdiNzZjNDRjOGE4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.HtGYPbtDPznDMa4oGafV2wn5l1OjyLxXg2HnUl4Q2Jc)
Beta Was this translation helpful? Give feedback.
All reactions