+
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -55,6 +82,14 @@ export default {
return variables;
},
isCollapse() {
+ if (!this.sidebar.opened){
+ document.documentElement.style.setProperty('--sidebar-width', '70px');
+ document.documentElement.style.setProperty('--sidebar-height', '60px');
+ }else {
+ document.documentElement.style.setProperty('--sidebar-width', '200px');
+ document.documentElement.style.setProperty('--sidebar-height', '48px');
+ }
+
return !this.sidebar.opened;
},
storeName() {
diff --git a/fuintAdmin/src/main.js b/fuintAdmin/src/main.js
index 3d576506e..07ed4f8ae 100644
--- a/fuintAdmin/src/main.js
+++ b/fuintAdmin/src/main.js
@@ -57,6 +57,8 @@ Vue.prototype.handleTree = handleTree
Vue.prototype.imgurl = 'http://192.168.0.138:8008'
// Vue.prototype.pcUrl = 'http://192.168.0.178:83/'
Vue.prototype.pcUrl = 'https://cashier.youkerr.com/'
+const Collapse= false
+Vue.prototype.isCollapse = Collapse
// 全局组件挂载
Vue.component('DictTag', DictTag)