修复微信菜单bug

This commit is contained in:
Anyon 2020-01-07 11:02:51 +08:00
parent 210a17bcb6
commit 9002337a64
2 changed files with 2 additions and 1 deletions

View File

@ -62,7 +62,7 @@ class Menu extends Controller
if ($this->request->get('output') === 'json') { if ($this->request->get('output') === 'json') {
$where = [['keys', 'notin', ['subscribe', 'default']], ['status', '=', '1']]; $where = [['keys', 'notin', ['subscribe', 'default']], ['status', '=', '1']];
$keys = $this->app->db->name('WechatKeys')->where($where)->order('sort desc,id desc')->select(); $keys = $this->app->db->name('WechatKeys')->where($where)->order('sort desc,id desc')->select();
$this->success('获取数据成功!', ['wechat_menud_ata' => sysdata($this->ckey), 'keysdata' => $keys]); $this->success('获取数据成功!', ['menudata' => sysdata($this->ckey), 'keysdata' => $keys]);
} else { } else {
$this->title = '微信菜单定制'; $this->title = '微信菜单定制';
$this->fetch(); $this->fetch();

View File

@ -183,6 +183,7 @@
$rootScope.$watch('item', function () { $rootScope.$watch('item', function () {
if ($rootScope.item.type === 'click') setTimeout(function () { if ($rootScope.item.type === 'click') setTimeout(function () {
form.render('select'); form.render('select');
$rootScope.item.key = $('[lay-filter="key"]').val();
}, 50) }, 50)
}, true); }, true);