YaoApp / yao-admin

真零代码,使用 Yao-Admin 连接数据库,你就有了一个管理后台。

Home Page:https://yaoapps.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

有时候404的问题

shiliu2023 opened this issue · comments

404.然后给菜单加了一个信息菜单,连接到了news,然后404莫名其妙又好了。然后用init.createTable重新生成news有关的文件。然后就又404了。这是操作过程。

form代码

{
"name": "信息",
"action": {
"bind": { "model": "news", "option": {} }
},
"layout": {
"actions": [
{
"title": "返回",
"icon": "icon-arrow-left",
"showWhenAdd": true,
"showWhenView": true,
"action": [
{
"name": "CloseModal",
"type": "Common.closeModal",
"payload": {}
}
]
},
{
"title": "保存",
"icon": "icon-check",
"style": "primary",
"showWhenAdd": true,
"action": [
{
"name": "Submit",
"type": "Form.submit",
"payload": {}
},
{
"name": "Back",
"type": "Common.closeModal",
"payload": {}
}
]
},
{
"action": [
{
"name": "Delete",
"payload": {
"model": "ai.chatlog"
},
"type": "Form.delete"
}
],
"confirm": {
"desc": "请确认删除,删除后数据无法恢复",
"title": "确认"
},
"icon": "icon-trash-2",
"style": "danger",
"title": "Delete"
}
]
}
}

{"message":"Invalid token","code":403,"context":"token is expired by 10h10m58s"}
/home/runner/work/yao/kun/exception/exception.go:118 (0x11a1273)
/home/runner/work/yao/yao/helper/jwt.go:44 (0x11a11a7)
/home/runner/work/yao/yao/service/guard.go:39 (0x13cccf1)
/home/runner/work/yao/yao/widgets/action/guard.go:23 (0x13670ad)
/home/runner/work/yao/yao/widgets/table/api.go:34 (0x1390547)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/context.go:168 (0x9b5f81)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/recovery.go:99 (0x9b5f6c)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/context.go:168 (0x13cd592)
/home/runner/work/yao/yao/service/middleware.go:22 (0x13cd129)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/context.go:168 (0x9b5f81)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/recovery.go:99 (0x9b5f6c)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/context.go:168 (0x9b50c6)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/logger.go:241 (0x9b50a9)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/context.go:168 (0x9b4190)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/gin.go:555 (0x9b3df8)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/gin.go:511 (0x9b3931)
/opt/hostedtoolcache/go/1.19.2/x64/src/net/http/server.go:2947 (0x773c0b)
/opt/hostedtoolcache/go/1.19.2/x64/src/net/http/server.go:1991 (0x76ee26)
/opt/hostedtoolcache/go/1.19.2/x64/src/runtime/asm_amd64.s:1594 (0x476460)