Browse Source

品牌id更改

15102826049 1 tuần trước cách đây
mục cha
commit
b4c171236d
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      src/components/customUpload.vue

+ 3 - 1
src/components/customUpload.vue

@@ -27,9 +27,11 @@ import { reactive, ref } from "vue";
 const fileList = ref<any[]>([]);
 const imgList = ref<string[]>([]);
 const aData = JSON.parse(uni.getStorageSync("activityData"));
+const brandId = uni.getStorageSync("brandId");
 
 const action =
-  import.meta.env.VITE_API_URL + "/miniApp/oss/upload/" + aData.brandId;
+  import.meta.env.VITE_API_URL + "/miniApp/oss/upload/" + brandId ||
+  aData?.brandId;
 
 const props = defineProps({
   title: String,