如果修改了表前缀访问:后台/二次开发/数据字典 会报错
地址为 /index.php?m=dev&f=db&table=zt_todo
如果修改表前缀直接报错
03:51:58 #0 framework/model.class.php(430): baseRouter->triggerError('the module dev ...', '/www/sites/pm/i...', 430, true)#1 module/dev/model.php(69): model->__call('sqlError', Array)#2 module/dev/control.php(72): devModel->getFields('zt_todo')#3 framework/base/router.class.php(2487): dev->db('zt_todo')#4 framework/router.class.php(769): baseRouter->loadModule()#5 www/index.php(88): router->loadModule()#6 {main}ERROR: the module dev has no sqlError method in framework/model.class.php on line 430, last called by module/dev/model.php on line 69 through function __call.in /www/sites/pm/index/framework/base/router.class.php on line 3253 when visiting dev-db-zt_todo
初步判断是因为默认的表名是配置到菜单链接中的,所以与实际表名不一致,直接修改 url 就正常了,但是这样就不够优雅。希望官方能够修复。
所用版本:开源版 20.7.1