• 请不要在回答技术问题时复制粘贴 AI 生成的内容
bojue
V2EX  ›  程序员

CLaude 消耗 2.4 美金 token 解决了 Vue3 Watch 导致的 bug, AI 时代该了解一些基础开发还是要了解下

  •  
  •   bojue ·
    nocokit · Oct 26, 2025 · 4465 views
    This topic created in 252 days ago, the information mentioned may be changed or developed.

    涉及到的业务逻辑:类似低代码配件交互,组件内容渲染+动态配置内容的模态框

    1.模态框内容修改 2.组件 watch 事件触发,更新组件:key 3.key 更新导致组件内容重新渲染,模态框状态初始化导致模态框关闭

    拉拉扯扯 5-6 ,在提示 [组件重新渲染] 的情况下才解决

    7 replies    2025-10-29 09:34:41 +08:00
    Orange2269
        1
    Orange2269  
       Oct 26, 2025
    是啊,不管是马车还是汽车,都需要驾驶技术
    bojue
        2
    bojue  
    OP
       Oct 26, 2025
    @Orange2269 感觉像个技术小组长,跟进度,有问题要帮忙排查
    juggtt213
        3
    juggtt213  
       Oct 26, 2025
    我们就是碳基 MCP...
    linkopeneyes
        4
    linkopeneyes  
       Oct 27, 2025
    claude 和 codex 在 vue 和 react 下很喜欢用 watch 和 useEffect,但是这两个东西很容易出 bug ,我都是提示词叫 ai 别用
    bojue
        5
    bojue  
    OP
       Oct 27, 2025
    @juggtt213

    @linkopeneyes 加到前置条件 cluade.md 了?
    我写 vue3 必须用到 watch ,claude 写监听 watch 不生效,微调后会设置 deep:true 就出问题

    我写 ng 项目有一个模块模版,正常都不用微调
    asen001
        6
    asen001  
       Oct 28, 2025
    @linkopeneyes 我也发现了,codex 老用 watch 写 bug ,然后改不好,要人工介入
    happytaoer
        7
    happytaoer  
       Oct 29, 2025
    要这么多钱? windsurf 免费 token 直接解决
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2903 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 51ms · UTC 12:55 · PVG 20:55 · LAX 05:55 · JFK 08:55
    ♥ Do have faith in what you're doing.