From 67864e67b33e2c320e7ac5c8d5db48ab8124e1fc Mon Sep 17 00:00:00 2001
From: 疯狂的狮子li <15040126243@163.com>
Date: 星期三, 26 四月 2023 22:47:28 +0800
Subject: [PATCH] fix 修复 oss 路径漏改问题

---
 src/components/ImageUpload/index.vue |    2 +-
 src/plugins/download.ts              |    2 +-
 src/components/FileUpload/index.vue  |    2 +-
 src/components/Editor/index.vue      |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/components/Editor/index.vue b/src/components/Editor/index.vue
index e250050..a0728eb 100644
--- a/src/components/Editor/index.vue
+++ b/src/components/Editor/index.vue
@@ -68,7 +68,7 @@
 
 const upload = reactive<UploadOption>({
     headers: { Authorization: "Bearer " + getToken() },
-    url: import.meta.env.VITE_APP_BASE_API + '/system/oss/upload'
+    url: import.meta.env.VITE_APP_BASE_API + '/resource/oss/upload'
 })
 const myQuillEditor = ref();
 
diff --git a/src/components/FileUpload/index.vue b/src/components/FileUpload/index.vue
index 9d8f742..a46d5ee 100644
--- a/src/components/FileUpload/index.vue
+++ b/src/components/FileUpload/index.vue
@@ -78,7 +78,7 @@
 const uploadList = ref<any[]>([]);
 
 const baseUrl = import.meta.env.VITE_APP_BASE_API;
-const uploadFileUrl = ref(baseUrl + "/system/oss/upload"); // 涓婁紶鏂囦欢鏈嶅姟鍣ㄥ湴鍧�
+const uploadFileUrl = ref(baseUrl + "/resource/oss/upload"); // 涓婁紶鏂囦欢鏈嶅姟鍣ㄥ湴鍧�
 const headers = ref({ Authorization: "Bearer " + getToken() });
 
 const fileList = ref<any[]>([]);
diff --git a/src/components/ImageUpload/index.vue b/src/components/ImageUpload/index.vue
index 57697fa..0791f3e 100644
--- a/src/components/ImageUpload/index.vue
+++ b/src/components/ImageUpload/index.vue
@@ -76,7 +76,7 @@
 const dialogVisible = ref(false);
 
 const baseUrl = import.meta.env.VITE_APP_BASE_API;
-const uploadImgUrl = ref(baseUrl + "/system/oss/upload"); // 涓婁紶鐨勫浘鐗囨湇鍔″櫒鍦板潃
+const uploadImgUrl = ref(baseUrl + "/resource/oss/upload"); // 涓婁紶鐨勫浘鐗囨湇鍔″櫒鍦板潃
 const headers = ref({ Authorization: "Bearer " + getToken() });
 
 const fileList = ref<any[]>([]);
diff --git a/src/plugins/download.ts b/src/plugins/download.ts
index 2640763..e1c4414 100644
--- a/src/plugins/download.ts
+++ b/src/plugins/download.ts
@@ -9,7 +9,7 @@
 let downloadLoadingInstance: LoadingInstance;
 export default {
   async oss(ossId: string | number) {
-    const url = baseURL + '/system/oss/download/' + ossId;
+    const url = baseURL + '/resource/oss/download/' + ossId;
     downloadLoadingInstance = ElLoading.service({ text: '姝e湪涓嬭浇鏁版嵁锛岃绋嶅��', background: 'rgba(0, 0, 0, 0.7)' });
     try {
       const res = await axios({

--
Gitblit v1.9.3