qinzhipeng_v 5 vuotta sitten
vanhempi
sitoutus
f6eac73c7a
2 muutettua tiedostoa jossa 38 lisäystä ja 8 poistoa
  1. 11 8
      src/router/index.js
  2. 27 0
      src/views/newWeb/index.vue

+ 11 - 8
src/router/index.js

@@ -562,34 +562,37 @@ export const constantRoutes = [{
   },
   {
     path: '/virtualDevices',
-    component: () =>
-    import('@/views/Platform/presentation/testa'),
+    component: () => import('@/views/Platform/presentation/testa'),
     redirect: '/virtualDevices/HTvehicle',
     name: '虚拟硬件',
     meta: { title: '虚拟硬件' },
     children: [{
       path: 'HTvehicle',
       name: '单车',
-      component: () =>
-            import('@/views/virtualDevices/HTvehicle'),
+      component: () => import('@/views/virtualDevices/HTvehicle'),
       meta: { title: '单车' }
     },
     {
       path: 'ebike',
       name: '电单车',
-      component: () =>
-            import('@/views/virtualDevices/HMvehicle.vue'),
+      component: () => import('@/views/virtualDevices/HMvehicle.vue'),
       meta: { title: '电单车' }
     },
     {
       path: 'ebike/ebikeCreate',
       name: '新增电单车',
       hidden: true,
-      component: () =>
-            import('@/views/virtualDevices/HMvehicleCreate.vue'),
+      component: () => import('@/views/virtualDevices/HMvehicleCreate.vue'),
       meta: { title: '新增电单车' }
     }
     ]
+  },
+  {
+    path: '/newWeb',
+    component: () => import('@/views/newWeb/index'),
+    // redirect: '/newWeb/index',
+    name: '发布管理',
+    meta: { title: '发布管理' }
   }
   ]
 },

+ 27 - 0
src/views/newWeb/index.vue

@@ -0,0 +1,27 @@
+<template>
+  <div>
+    <iframe :src="envUrl" style="width:100%;" scrolling="no" frameborder="0" :height="iframeHeight" />
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'NEWWEB',
+  data() {
+    return {
+      show: true,
+      iframeHeight: '720px'
+    }
+  },
+  computed: {
+    envUrl() {
+      return 'http://cp-stable.intra.xiaojukeji.com/list/'
+    }
+  },
+  mounted() {
+    var height = window.innerHeight > document.body.clientHeight ? window.innerHeight : document.body.clientHeight
+    this.iframeHeight = height + 'px'
+  }
+}
+</script>
+