瀏覽代碼

品牌id更改

15102826049 1 周之前
父節點
當前提交
b4c171236d
共有 1 個文件被更改,包括 3 次插入1 次删除
  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,