From 6259692bd6cc4c8d14e93649931c15105df7b389 Mon Sep 17 00:00:00 2001 From: wen <1515> Date: Tue, 25 Oct 2022 01:28:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/user.js | 9 ++ src/layout/components/Sidebar/index.vue | 2 +- src/views/subfile/index.vue | 158 ++++++++++++++++++------ 3 files changed, 131 insertions(+), 38 deletions(-) diff --git a/src/api/user.js b/src/api/user.js index fb77191..1d783f4 100644 --- a/src/api/user.js +++ b/src/api/user.js @@ -32,4 +32,13 @@ export function mkdir(datas) { method: 'post', data: datas }) +} + +// 上传文件 +export function uploadrequest(datas) { + return request({ + url: '/api/uploadbase64', + method: 'post', + data: datas + }) } \ No newline at end of file diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue index 4bb30fd..8a768b1 100644 --- a/src/layout/components/Sidebar/index.vue +++ b/src/layout/components/Sidebar/index.vue @@ -110,7 +110,7 @@ export default { getmunusdata() { let thiss = this; - console.log(1); + //console.log(1); // console.log(this.$store); mirlist().then(response => { diff --git a/src/views/subfile/index.vue b/src/views/subfile/index.vue index da38b36..4395e4f 100644 --- a/src/views/subfile/index.vue +++ b/src/views/subfile/index.vue @@ -1,6 +1,6 @@