1
lzhe
2025-08-12 0f3bd1cd06db00775e29d181acaa0319ee58cfe6
src/views/wel/index.vue
@@ -1,6 +1,15 @@
<!--
 * @Author: 李喆(开发组) lzhe@yxqiche.com
 * @Date: 2025-08-11 09:25:36
 * @LastEditors: 李喆(开发组) lzhe@yxqiche.com
 * @LastEditTime: 2025-08-12 17:45:42
 * @FilePath: /mdmweb/src/views/wel/index.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <shemi v-if="isSM"></shemi>
  <gongkong v-else></gongkong>
  <!-- <shemi v-if="isSM"></shemi>
  <gongkong v-else></gongkong> -->
  <gongkong></gongkong>
</template>
<script>
import shemi from './shemi.vue'
@@ -22,14 +31,14 @@
  },
  mounted() {
    //判断版本  0:涉密网,1:工控网;
    // axios({url: '/blade-mdm/system/param/getValue?paramKey=networkType',method: 'get'}).then(res => {
    //     if(res.data.data === "0") {
    //       this.isSM = true;
    //     }else {
    //       this.getPre();
    //     }
    //   }
    // );
    axios({url: '/blade-mdm/system/param/getValue?paramKey=networkType',method: 'get'}).then(res => {
        if(res.data.data === "0") {
          this.isSM = true;
        }else {
          // this.getPre();
        }
      }
    );
  }
};
</script>