浏览代码

在管理入口中添加移动端入口按钮,优化布局样式以提升用户体验。

zyh 8 月之前
父节点
当前提交
1eac21673c
共有 1 个文件被更改,包括 9 次插入1 次删除
  1. 9 1
      server/app.tsx

+ 9 - 1
server/app.tsx

@@ -360,13 +360,21 @@ export default function({ apiClient, app, moduleDir }: ModuleParams) {
               </div>
 
               {/* 管理入口按钮 */}
-              <div>
+              <div className="space-y-4">
                 <a
                   href="/admin"
                   className="w-full flex justify-center py-3 px-4 border border-transparent rounded-md shadow-sm text-lg font-medium text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"
                 >
                   进入管理后台
                 </a>
+                
+                {/* 移动端入口按钮 */}
+                <a
+                  href="/mobile"
+                  className="w-full flex justify-center py-3 px-4 border border-blue-600 rounded-md shadow-sm text-lg font-medium text-blue-600 bg-white hover:bg-blue-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"
+                >
+                  进入移动端
+                </a>
               </div>
             </div>
           </div>