瀏覽代碼

新增iframe示例

tongshangming 2 年之前
父節點
當前提交
f35832c0e0
共有 3 個文件被更改,包括 19 次插入1 次删除
  1. 9 0
      src/router/asyncRouter.ts
  2. 10 0
      src/views/iframe/Iframe.vue
  3. 0 1
      src/views/system/User.vue

+ 9 - 0
src/router/asyncRouter.ts

@@ -285,6 +285,15 @@ const asyncRouter: RouteRecordRaw[] = [
       }
     ]
   },
+  {
+    path: '/iframe',
+    name: 'iframe',
+    component: () => import('@/views/iframe/Iframe.vue'),
+    meta: {
+      title: 'iframe示例',
+      icon: 'Notebook'
+    }
+  },
   {
     path: '/userInfo',
     name: 'userInfo',

+ 10 - 0
src/views/iframe/Iframe.vue

@@ -0,0 +1,10 @@
+<script setup lang="ts">
+
+</script>
+
+<template>
+  <iframe class="w-full h-full border-0" src='https://jijian.sxidc.com/'></iframe>
+</template>
+
+<style lang="scss" scoped>
+</style>

+ 0 - 1
src/views/system/User.vue

@@ -131,7 +131,6 @@ const handleEdit = (row: any) => {
   <pro-table
     :crud="CRUD"
     :formConfig="formConfig"
-    :toolbarConfig="{ custom: true }"
     @click-create="handleCreate"
     @click-edit="handleEdit"
   >