From d026c140cb1ed99abecfd4eeade8036ca2001b98 Mon Sep 17 00:00:00 2001
From: gongjinbao <gongjinbao@163.com>
Date: 星期三, 08 一月 2025 16:30:23 +0800
Subject: [PATCH] Merge branch 'main' of http://120.76.84.145:10101/gitblit/r/H5/americanContainer

---
 src/layouts/index.vue |   19 ++-----------------
 1 files changed, 2 insertions(+), 17 deletions(-)

diff --git a/src/layouts/index.vue b/src/layouts/index.vue
index fa86c2d..dabf7e9 100644
--- a/src/layouts/index.vue
+++ b/src/layouts/index.vue
@@ -1,15 +1,6 @@
+<!-- 如果在空白页打开则不显示框架 -->
 <template>
-  <div style="height: 100%;">
-    <!-- 判断是否在空白页打开 -->
-    <template v-if="!isOneself">
-      <div class="app-wrapper">
-      </div>
-    </template>
-    <!-- 如果在空白页打开则不显示框架 -->
-    <template v-else>
-      <AppContent />
-    </template>
-  </div>
+  <router-view />
 </template>
 
 <script>
@@ -17,8 +8,6 @@
 export default {
   data() {
     return {
-      // 默认页面在框架内显示
-      isOneself: false,
       // 获取当前页面名称
       nowRouteName: '',
     }
@@ -29,8 +18,6 @@
   mounted() {
     // 设置标题
     this.setNowRouteName(this.$route)
-    // 初始化加载一次判断是否在空白页打开
-    this.isOneself = this.$route.meta.oneself
   },
   methods: {
     // 获取当前页面标题
@@ -42,8 +29,6 @@
     // 监听route变化
     $route: function (newVal) {
       this.setNowRouteName(newVal)
-      // 判断页面是否在空白页打开
-      this.isOneself = newVal.meta.oneself
     },
   },
 }

--
Gitblit v1.7.1