We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
按照复现步骤,NModal的show关联的ref变量在被修改(无论是在setup中直接修改或是被v-modal修改)时,会触发[Vue warn] Set operation on key "_ctx" failed: target is readonly., 出错位置在设置ref变量的地方。
[Vue warn] Set operation on key "_ctx" failed: target is readonly.
pnpm install pnpm run dev 点击modal的遮罩,等待其自动重新出现 查看控制台
尝试了在空项目中复现,却没有复现出来,只好提供完整项目了( 已经配置过项目,使得模态框能立即触发
https://github.com/neko-para/maa-support/tree/naive-issue
System: OS: Windows 11 10.0.22631 CPU: (16) x64 AMD Ryzen 7 7735H with Radeon Graphics Memory: 13.93 GB / 27.69 GB Binaries: Node: 20.11.1 - C:\Program Files\nodejs\node.EXE npm: 10.2.4 - C:\Program Files\nodejs\npm.CMD pnpm: 9.0.2 - C:\Program Files\nodejs\pnpm.CMD Browsers: Edge: Chromium (123.0.2420.97) Internet Explorer: 11.0.22621.3527
pnpm
The text was updated successfully, but these errors were encountered:
我这边没有复现,这似乎与 naiveUI 无关
Sorry, something went wrong.
试了下 n-drawer,也会出现
<script setup lang="ts"> import { ref } from 'vue' const active = ref(false) function activate() { active.value = true } </script> <template> <n-button @click="activate()"> 右 </n-button> <n-drawer v-model:show="active" :width="502" placement="right"> <n-drawer-content title="斯通纳"> 《斯通纳》是美国作家约翰·威廉姆斯在 1965 年出版的小说。 </n-drawer-content> </n-drawer> </template> <style lang="scss" scoped> </style>
"vue": "^3.4.21" "@vitejs/plugin-vue": "^5.0.4", "vite": "^5.2.0", "vue-tsc": "^2.0.6"
vue 更新到 3.4.27 就无了😀
No branches or pull requests
描述错误
按照复现步骤,NModal的show关联的ref变量在被修改(无论是在setup中直接修改或是被v-modal修改)时,会触发
![image](https://private-user-images.githubusercontent.com/26452623/332805066-517d8a55-5db1-45a6-a7a4-82cd64ef1749.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE1OTU5NzcsIm5iZiI6MTcyMTU5NTY3NywicGF0aCI6Ii8yNjQ1MjYyMy8zMzI4MDUwNjYtNTE3ZDhhNTUtNWRiMS00NWE2LWE3YTQtODJjZDY0ZWYxNzQ5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIxVDIxMDExN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTIzNzU2ZWUzOWM4OWE5OWVmYzZjMDdlZWI3MWE5NjI5MDUwN2I3MzkyMjg1YWZkYTA1YTM2ZjgyZjQxZjU0YmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Wi9EC5LjZbhtkt0AhwPj8vEBI23ygzB4z07JN8RBKJE)
[Vue warn] Set operation on key "_ctx" failed: target is readonly.
, 出错位置在设置ref变量的地方。复现步骤
pnpm install
pnpm run dev
点击modal的遮罩,等待其自动重新出现
查看控制台
尝试了在空项目中复现,却没有复现出来,只好提供完整项目了(
已经配置过项目,使得模态框能立即触发
最小复现链接
https://github.com/neko-para/maa-support/tree/naive-issue
系统信息
使用的包管理器
pnpm
验证
The text was updated successfully, but these errors were encountered: