tongshangming 2 жил өмнө
parent
commit
f35832c0e0

+ 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"
   >