前言:
代码错误提示,出错代码如下:
pages/index/index.js:
Error: module “request/.js” is not defined
at require (VM476 WAService.js:2)
at VM476 WAService.js:2
at index.js? [sm]:2
at wrapFn (instanceframe?s=1625129456491:52)
at require (VM476 WAService.js:2)
at :1272:7
at doWhenAllScriptLoaded (:1475:21)
at Object.scriptLoaded (:1503:5)
at Object. (:1528:22)
at VM476 WAService.js:2
解决思路:
该错误是路径文件出现问题,也就是找不到该文件,这里对比发现原来是index.js文件缺失,修正后故障解除。
修改后恢复正常的界面 :