浏览代码

【功能修复】公众号:图片上传时,accountId 参数不正确的问题

YunaiV 7 月之前
父节点
当前提交
aa37021a68
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/mp/draft/components/NewsForm.vue

+ 1 - 1
src/views/mp/draft/components/NewsForm.vue

@@ -144,7 +144,7 @@ const accountId = inject<number>('accountId')
 
 // ========== 文件上传 ==========
 const UPLOAD_URL = import.meta.env.VITE_BASE_URL + '/admin-api/mp/material/upload-permanent' // 上传永久素材的地址
-const editorConfig = createEditorConfig(UPLOAD_URL, accountId)
+const editorConfig = createEditorConfig(UPLOAD_URL, unref(accountId))
 
 // v-model=newsList
 const emit = defineEmits<{