marymelisa 4 tahun lalu
induk
melakukan
3166d559b9
1 mengubah file dengan 23 tambahan dan 25 penghapusan
  1. 23 25
      src/views/information/goods/index.vue

+ 23 - 25
src/views/information/goods/index.vue

@@ -1,32 +1,30 @@
 <template>
-  <!-- 商品信息 -->
-  <div class="goods-info">
-    <firstMenu :list="list"
-               :value="'title'"
-               @selectMenu="selectMenu" />
-    <router-view />
-  </div>
+    <!-- 商品信息 -->
+    <div class="goods-info">
+        <firstMenu :list="list" :value="'title'" @selectMenu="selectMenu" />
+        <router-view />
+    </div>
 </template>
 
 <script lang="ts">
-import { defineComponent } from 'vue';
-import firstMenu from '@/components/firstMenu/index.vue';
-import { handleRouterMenu } from '@/setup/router/index';
-import { initData } from '@/setup/methods/index';
+    import { defineComponent } from 'vue';
+    import firstMenu from '@/components/firstMenu/index.vue';
+    import { handleRouterMenu } from '@/setup/router/index';
+    import { initData } from '@/setup/methods/index';
 
-export default defineComponent({
-    name: 'custom',
-    components: {
-        firstMenu,
-    },
-    setup() {
-        const { list, selectMenu, getMenuList } = handleRouterMenu();
-        initData(() => {
-            getMenuList();
-        });
-        return { list, selectMenu };
-    },
-});
+    export default defineComponent({
+        name: 'custom',
+        components: {
+            firstMenu,
+        },
+        setup() {
+            const { list, selectMenu, getMenuList } = handleRouterMenu();
+            initData(() => {
+                getMenuList();
+            });
+            return { list, selectMenu };
+        },
+    });
 </script>
 
 <style lang="less">
@@ -34,4 +32,4 @@ export default defineComponent({
   width: 100%;
   height: calc(100% - 40px);
 }
-</style>;
+</style>