Lin Qilong 3 veckor sedan
förälder
incheckning
ce0d1d277a
2 ändrade filer med 7 tillägg och 11 borttagningar
  1. 2 5
      ruoyi-ui/src/views/OpenData.vue
  2. 5 6
      ruoyi-ui/src/views/index.vue

+ 2 - 5
ruoyi-ui/src/views/OpenData.vue

@@ -13,18 +13,15 @@
   </el-row>
   <el-row :gutter="20" style="margin: 0">
     <el-col :span="5" :offset="2">
-      <OrgList/>
+      <router-view name="left"/>
     </el-col>
     <el-col :span="15">
-      <OpenDataQuery/>
+      <router-view name="rigth"/>
     </el-col>
   </el-row>
 </template>
-
 <script setup name="openData">
 import Breadcrumb from '../components/Breadcrumb.vue'
-import OrgList from "@/views/OrgList.vue";
-import OpenDataQuery from "@/views/OpenDataQuery.vue";
 </script>
 <style scoped>
 .index_head {

+ 5 - 6
ruoyi-ui/src/views/index.vue

@@ -1,11 +1,10 @@
 <template>
-    <div>
-    </div>
+  <div>
+  </div>
 </template>
 <script setup>
-import { ref } from 'vue';
-import axios from 'axios';
-import { ElMessage } from 'element-plus';
+import {ref} from 'vue';
+import {ElMessage} from 'element-plus';
 
 const uploadRef = ref(null);
 const fileList = ref([]); // 存储文件列表
@@ -43,7 +42,7 @@ const submitUpload = () => {
 
   // 发送请求
   request.post('https://api.example.com/upload', formData, {
-    headers: { 'Content-Type': 'multipart/form-data' },
+    headers: {'Content-Type': 'multipart/form-data'},
     onUploadProgress: (e) => {
       console.log(`进度: ${Math.round((e.loaded / e.total) * 100)}%`);
     }