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

[Bug] Watching热更新无效 #329

Open
rainame opened this issue Feb 25, 2023 · 2 comments
Open

[Bug] Watching热更新无效 #329

rainame opened this issue Feb 25, 2023 · 2 comments

Comments

@rainame
Copy link

rainame commented Feb 25, 2023

发生了什么?

在docker中初次使用yao start启动项目之后,修改tables\pet.tab.json文件,更改显示的columns,之后刷新页面,还是原来的的布局,热更新没生效,必须手工重启后文件更改才会生效。另外终端控制台无任何输出,无论是否加上--debug参数。

相关截图(必需)

最小可复现例子(必需)

Please provide a minimal reproduction then upload to your GitHub. 请提供 最小重现,并上传到你的 GitHub 仓库

复现步骤

Steps to reproduce the behavior: 1. 2.

Expected behavior 1. 2.

tables\pet.tab.json文件修改前:

{
  "name": "::Pet Admin Bind Model",
  "action": {
    "bind": { "model": "pet", "option": { "form": "pet" } }
  }
}

tables\pet.tab.json文件修改后:

{
  "name": "::Pet Admin Bind Model",
  "action": {
    "bind": { "model": "pet", "option": { "form": "pet" } }
  },
  "layout": {
    "header": { "preset": {} },
    "table": {
      "columns": [
        { "name": "昵称", "width": 200 },
        { "name": "类型", "width": 200 }
      ]
    }
  }
}

Context

  • Yao Version( Detail Version ): 0.10.2-e0c2ca7f4bd3-2022-11-21T01:42:30+0000
  • Xgen Version( Build Info ):
  • Platform: Windows 10
@WGinit
Copy link

WGinit commented Jun 27, 2023

参考:#66

@jackbaihaochen
Copy link

jackbaihaochen commented Jul 26, 2023

使用的是Mac,docker启动,我这里也是,API文件保存后无法热更新。更准确地说,是我修改guard之后保存,热更新无效,还是会使用保存之前的guard。

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