diff --git a/frame.js b/frame.js index 96bac7d5..6398c3f1 100644 --- a/frame.js +++ b/frame.js @@ -252,7 +252,7 @@ var can = Volcanos("chat", { }), }, Config.libs.concat(Config.list), function(can) { can[Config.main] = can.Page(can, Config.main, Config, function(chat) { - chat.Login.Export(event||{}, can.user.Search(can, "layout")||"工作", "layout") + chat.Login.Export(event||{}, can.user.Search(can, "layout")||Config.layout.def, "layout") chat.Login.Import(event||{}, "", "login") }, document.body) }) diff --git a/order.js b/order.js index e7bd5bc7..a9287ebb 100644 --- a/order.js +++ b/order.js @@ -30,7 +30,7 @@ var Config = {context: "/chat/", {group: "index", name: "Action", pos: "bottom"}, {group: "index", name: "Footer", pos: "foot", state: ["ntxt", "ncmd"], title: 'shylinux@163.com'}, - ], layout: {list: ["工作", "办公", "聊天"], size: { + ], layout: {def: "办公", list: ["工作", "办公", "聊天"], size: { "工作": {head: 30, foot: 30, left: 0, right: 100, bottom: -1, center: 0, top: 0}, "办公": {head: 30, foot: 30, left: 100, right: 100, bottom: -1, center: 0, top: 0}, "聊天": {head: 30, foot: 30, left: 100, right: 100, bottom: 300, center: 40, top: -2},