diff --git a/static/css/index.css b/static/css/index.css index 1659afe..9a21bf1 100644 --- a/static/css/index.css +++ b/static/css/index.css @@ -313,6 +313,7 @@ header [class*=" icon-"] { vertical-align: middle; } .ui-project-main { + position: relative; box-sizing: border-box; width: 80%; height: calc(100% - 31px); @@ -324,6 +325,13 @@ header [class*=" icon-"] { .ui-project-setting form { width: 100%; height: 100%; + background-color: #fff; +} +.ui-project-setting { + position: absolute; + top: 0; + left: 0; + z-index: 1; } .ui-control-bar { height: 39px; diff --git a/static/js/app/index.js b/static/js/app/index.js index 1afa2d7..1c087cc 100644 --- a/static/js/app/index.js +++ b/static/js/app/index.js @@ -15,10 +15,6 @@ require('../components/app-main'); window.addEventListener('DOMContentLoaded', function (){ var app; - function normalize(configure){ - return JSON.parse(JSON.stringify(configure)); - } - function init(configure){ app = new Vue({ el: '#app', @@ -42,7 +38,7 @@ window.addEventListener('DOMContentLoaded', function (){ this.activeIndex = index; }, 'save-configure': function (){ - ipc.send('app-configure', 'save', normalize(this.configure)); + ipc.send('app-configure', 'save', JSON.parse(JSON.stringify(this.configure))); } } }); diff --git a/static/js/components/app-configure/app-configure.html b/static/js/components/app-configure/app-configure.html index 59873b1..fe0e0d8 100644 --- a/static/js/components/app-configure/app-configure.html +++ b/static/js/components/app-configure/app-configure.html @@ -10,7 +10,7 @@ -