Skip to content

Commit

Permalink
优化用户体验
Browse files Browse the repository at this point in the history
  • Loading branch information
brjunsuc committed Jan 16, 2023
1 parent 79d37f9 commit c8dafcf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion web/source/module/display.ctrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
$module_name = pdo_fetchcolumn("SELECT `name` FROM " . tablename('modules') . " ORDER BY `mid` ASC");
$module_info = module_fetch($module_name);
if (empty($module_info)) {
itoast('模块不存在或已经删除!');
message('应用尚未初始化,前去初始化。', url('module/manage-system/install'));
}

$support = [];
Expand Down
3 changes: 3 additions & 0 deletions web/source/module/manage-system.ctrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
unset($modules[$key]);
}
}
if (empty($modules)) {
message('没有检测到可安装的应用,请联系开发者处理。', url('system/base-info'));
}
foreach ($modules as $module_name) {
$installed_module = table('modules')->getByName($module_name);
if (!empty($installed_module)) {
Expand Down
4 changes: 2 additions & 2 deletions web/themes/default/system/base-info.html
Original file line number Diff line number Diff line change
Expand Up @@ -193,15 +193,15 @@
function card() {
window.w7.ready(()=>{
window.w7.navigate({
modulename: 'w7_engine_server30', // 根据modulename选择
modulename: 'w7_rangineapi', // 根据modulename选择
type: 'micro', // micro or iframe 目标应用是vue 用micro
route: '{php echo $card_route}', // 要打开应用的路由
style: {width:1000, height:700},
});
})
}
function tolink() {
window.open('https://console.w7.cc/api/deploy/w7_engine_server30/redirect?route=/link', '_blank');
window.open('https://console.w7.cc/api/deploy/w7_rangineapi/redirect?route=/link', '_blank');
return true;
}
angular.module('systemApp').value('config', {
Expand Down

0 comments on commit c8dafcf

Please sign in to comment.