Explorar el Código

默认布局设为iotmenu

yuhan hace 4 meses
padre
commit
05edb3b4d0
Se han modificado 2 ficheros con 14 adiciones y 14 borrados
  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) => {