message:Error: 非法的文件,错误信息:invalid file: utils/http.js, 1:1337, SyntaxError: Unexpected token ?"use strict";const e=require("../common/vendor.js"),r=require("./js.js"),t=require("../store/user.js"),s=e.un.create({baseUrl:"http://192.168.6.19:8083/waiter"});s.interceptors.request.use(e=>{let s=t.useUserStore();return e.headers={...e.headers,"content-type":"application/json","LOGIN-TYPE":"shop"},r.isEmpty(s.token)||(e.headers["X-Access-Token"]=s.token),e}),s.interceptors.response.use(s=>{if("request:fail timeout"===s.errMsg)return r.toast("请求超时,请稍候再试"),e.index.$emit("z-paging-error-emit"),Promise.reject(s);let{data:o,status:n,config:i}=s;if(!n&&!o&&!i)return r.toast("连接失败,请稍候再试"),e.index.$emit("z-paging-error-emit"),Promise.reject(s);if("upload"===i.adapter&&(o=JSON.parse(o)),200!==n)return r.toast(o.message),e.index.$emit("z-paging-error-emit"),Promise.reject(s);if(401===o.code){return t.useUserStore().setToken(""),r.remove_data("token"),e.index.$emit("z-paging-error-emit"),Promise.reject(s)}return 200!==(null==o?void 0:o.code)?(i.hiddenErrorMessage||r.toast(o.message),e.index.$emit("z-paging-error-emit"),Promise.reject(o)):o},s=>{let o=s.response.status,n=s.response.data;if(401===o){t.useUserStore().setToken(""),r.remove_data("token")}else 500===o&&r.toast(n.message);return e.index.$emit("z-paging-error-emit"),Promise.reject(s)});const o=function(e){return s(e)};o.get=function(e,r,t){return s.get(e,{params:r??{},...t})},o.post=function(e,r,t){return s.post(e,r,t)},o.upload=function(e){return s.upload(e)},exports.http=o; [20240812 14:35:12][wxa8046e1db531a52b]
appid: wxa8046e1db531a52b
openid: o6zAJszmIxiCE8DaBM76SXytLMKM
ideVersion: 1.06.2407110
osType: win32-x64
time: 2024-08-12 14:37:52
请问这是什么问题?开发工具编译运行一点问题没有,预览和上传代码就会报这个错误
说明:勾选了将JS编译成ES5就不会报错,不勾选就报上方错误,最新的Nightly版本也是这样
说明:勾选了将JS编译成ES5就不会报错,不勾选就报上方错误,最新的Nightly版本也是这样