|
@@ -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>
|