liyangzheng 2 gadi atpakaļ
vecāks
revīzija
3113da0da8
3 mainītis faili ar 25 papildinājumiem un 7 dzēšanām
  1. 11 0
      src/api/space/space.js
  2. 6 6
      src/router/index.js
  3. 8 1
      src/views/myfile/MyFile.vue

+ 11 - 0
src/api/space/space.js

@@ -0,0 +1,11 @@
+import request from "../../../src/utils/request"
+function getSpaceOut(data) {
+    return request({
+        url: '/biz/expansion/list',
+        method: "get",
+        params: data
+    })
+}
+export default {
+    getSpaceOut,
+}

+ 6 - 6
src/router/index.js

@@ -146,13 +146,13 @@ export const constantRoutes = [
     component: Layout,
     redirect: '/index',
     children: [
-      {
-        path: 'swagger',
-        component: () => import('@/views/tool/swagger/index.vue'),
-        name: 'swagger',
-        meta: { title: '接口', icon: 'dashboard' },
+      // {
+      //   path: 'swagger',
+      //   component: () => import('@/views/tool/swagger/index.vue'),
+      //   name: 'swagger',
+      //   meta: { title: '接口', icon: 'dashboard' },
 
-      },
+      // },
     ]
   },
 

+ 8 - 1
src/views/myfile/MyFile.vue

@@ -232,6 +232,7 @@
 <script>
 import { ref } from 'vue'
 import myfile from '../../api/myfile/myfile'
+import space from '../../api/space/space'
 import { Search } from '@element-plus/icons-vue'
 import copy from '../../assets/images/copy.png'
 import clipboard from '../../assets/images/clipboard.png'
@@ -462,6 +463,11 @@ export default {
         function filterMethod(query, item) {
             return item.initial.toLowerCase().includes(query.toLowerCase())
         }
+        function getSpace(){
+            space.getSpaceOut({}).then(res=>{
+                console.log(res,'111');
+            })
+        }
         return {
             folderList,//文件夹的数据
             fileList,//文件夹的数据
@@ -506,11 +512,12 @@ export default {
             user,//用户图标
             anyP,
             chooseSet1,
+            getSpace,//获取内存空间
         }
     },
     created() {
         this.getAll();
-        // 监听鼠标左键点击事件
+        this.getSpace()
     },
 }
 </script>