uni-cms-ariticle 这个文件parse-image-url.js,上传到微信公众平台时编译不过去
[HBuilder] 23:36:05.232 上传项目到微信平台失败
[HBuilder] 23:36:05.233 Error: uni_modules/uni-cms-article/common/parse-image-url.js: file: uni_modules/uni-cms-article/common/parse-image-url.js
uni_modules/uni-cms-article/common/parse-image-url.js: Unexpected token (1:663)
1 | "use strict";const r=require("../../../common/vendor.js");exports.parseImageUrl=async function(t=[],e="media"){if("editor"===e?t=function(r=[]){const t=[];Array.isArray(r)||(r=[r]);for(const e of r){const{insert:r={},attributes:s={}}=e,{"data-custom":i=""}=s;let n=i.split("&").reduce(((r,t)=>{const[e,s]=t.split("=");return r[e]=s,r}),{});t.push({src:r.image,source:n.source})}return t}(t).map((r=>r.source)):Array.isArray(t)||(t=[t]),!t)return null;const s=t.filter((r=>r.startsWith("cloud://")));if(s.length){const e=await r.$s.getTempFileURL({fileList:s});return t.map((r=>{const t=e.fileList.find((t=>t.fileID===r));return{src:(null==t?void 0:t.tempFileURL)??r,source:r}}))}return t.map((r=>({src:r,source:r})))};
| ^
2 |
9***@qq.com
回退什么的版本,是回退hbuilderx编译器的版本还是插件版本
2024-05-06 10:47