Ver código fonte

默认布局设为iotmenu

yuhan 4 meses atrás
pai
commit
05edb3b4d0
2 arquivos alterados com 14 adições e 14 exclusões
  1. 12 12
      src/components/setting/SettingDrawer.vue
  2. 2 2
      src/store/modules/app.js

+ 12 - 12
src/components/setting/SettingDrawer.vue

@@ -61,6 +61,18 @@
           <h3 class="setting-drawer-index-title">导航模式</h3>
 
           <div class="setting-drawer-index-blockChecbox">
+            <!-- IoT Edge相关 修改框架 -->
+            <a-tooltip>
+              <template slot="title">
+                iot导航
+              </template>
+              <div class="setting-drawer-index-item" @click="handleLayout('iotmenu')">
+                <img src="https://gw.alipayobjects.com/zos/rmsportal/KDNDBbriJhLwuqMoxcAr.svg" alt="iotmenu">
+                <div class="setting-drawer-index-selectIcon" v-if="layoutMode === 'iotmenu'">
+                  <a-icon type="check"/>
+                </div>
+              </div>
+            </a-tooltip>
             <a-tooltip>
               <template slot="title">
                 侧边栏导航
@@ -86,18 +98,6 @@
                 </div>
               </div>
             </a-tooltip>
-            <!-- IoT Edge相关 修改框架 -->
-            <a-tooltip>
-              <template slot="title">
-                iot导航
-              </template>
-              <div class="setting-drawer-index-item" @click="handleLayout('iotmenu')">
-                <img src="https://gw.alipayobjects.com/zos/rmsportal/KDNDBbriJhLwuqMoxcAr.svg" alt="iotmenu">
-                <div class="setting-drawer-index-selectIcon" v-if="layoutMode === 'iotmenu'">
-                  <a-icon type="check"/>
-                </div>
-              </div>
-            </a-tooltip>
           </div>
           <div :style="{ marginTop: '24px' }">
             <a-list :split="false">

+ 2 - 2
src/store/modules/app.js

@@ -20,14 +20,14 @@ const app = {
     },
     device: 'desktop',
     theme: '',
-    layout: '',
+    layout: 'iotmenu',
     contentWidth: '',
     fixedHeader: false,
     fixSiderbar: false,
     autoHideHeader: false,
     color: null,
     weak: false,
-    multipage: true //默认多页签模式
+    multipage: false //默认多页签模式
   },
   mutations: {
     SET_SIDEBAR_TYPE: (state, type) => {