diff --git a/gui/static/css/index.css b/gui/static/css/index.css index 1c0f0c5..fb9aba7 100644 --- a/gui/static/css/index.css +++ b/gui/static/css/index.css @@ -13,6 +13,7 @@ html { -moz-osx-font-smoothing: grayscale; width: 100%; height: 100vh; + min-width: 1719px; overflow: hidden; } .main_bg{ diff --git a/gui/static/css/setting.css b/gui/static/css/setting.css index caed83e..688768b 100644 --- a/gui/static/css/setting.css +++ b/gui/static/css/setting.css @@ -13,6 +13,7 @@ body { -moz-osx-font-smoothing: grayscale; width: 100%; height: 100vh; + min-width: 1719px; overflow: hidden; } diff --git a/gui/static/js/index.js b/gui/static/js/index.js index 3b1774f..852402b 100644 --- a/gui/static/js/index.js +++ b/gui/static/js/index.js @@ -262,12 +262,17 @@ class FayInterface { loadUserList() { this.fayService.getUserList().then((response) => { if (response && response.list) { + if (response.list.length == 0){ + info = []; + info[0] = 1; + info[1] = 'User'; + this.userList.push(info) + this.selectUser(info); + }else{ this.userList = response.list; - - if (this.userList.length > 0) { - this.selectUser(this.userList[0]); - } + this.selectUser(this.userList[0]); } + } }); }, selectUser(user) { diff --git a/gui/templates/index.html b/gui/templates/index.html index 539e303..13a95aa 100644 --- a/gui/templates/index.html +++ b/gui/templates/index.html @@ -63,7 +63,7 @@
-
+
发送信息
diff --git a/gui/templates/setting.html b/gui/templates/setting.html index 4e7fd2c..29c6735 100644 --- a/gui/templates/setting.html +++ b/gui/templates/setting.html @@ -48,7 +48,7 @@
  • 职        业:
  •  联系方式:
  • Q&A文件:
  • -
  • 补        充:
  • +
  • 补        充: