小程序开发教程中,wepy 框架打包上线执行 NPM run build 后,网络请求一直提示 “请求异常”?

小程序开发教程中,wepy框架打包上线执行  npm run build后,网络请求一直提示“请求异常”?

小程序开发教程中,wepy框架打包上线执行  npm run build后,网络请求一直提示“请求异常”?
package.json

{
  "name": "larabbs-weapp",
  "version": "0.0.1",
  "description": "larabbs weapp project",
  "main": "dist/app.js",
  "scripts": {
    "dev": "wepy build --watch",
    "build": "cross-env NODE_ENV=production wepy build --no-cache",
    "dev:web": "wepy build --output web",
    "clean": "find ./dist -maxdepth 1 -not -name 'project.config.json' -not -name 'dist' | xargs rm -rf",
    "test": "echo \"Error: no test specified\" && exit 1",
    "eslint": "eslint --fix --ext .js,.wpy src"
  },
  "wepy": {
    "module-a": false,
    "./src/components/list": "./src/components/wepy-list.wpy"
  },
  "author": "liyu001989@gmail.com",
  "license": "MIT",
  "dependencies": {
    "moment": "^2.21.0",
    "npm": "^5.8.0",
    "promise-polyfill": "^7.1.0",
    "redux": "^3.7.2",
    "redux-actions": "^2.2.1",
    "redux-promise": "^0.5.3",
    "wepy": "^1.7.1",
    "wepy-async-function": "^1.4.7",
    "wepy-com-toast": "^1.0.2",
    "wepy-plugin-imagemin": "^1.5.3",
    "wepy-plugin-replace": "^1.5.10",
    "wepy-redux": "^1.5.3"
  },
  "devDependencies": {
    "babel-eslint": "^7.2.1",
    "babel-plugin-transform-class-properties": "^6.24.1",
    "babel-plugin-transform-decorators-legacy": "^1.3.4",
    "babel-plugin-transform-export-extensions": "^6.22.0",
    "babel-plugin-transform-object-rest-spread": "^6.26.0",
    "babel-preset-env": "^1.6.1",
    "cross-env": "^5.1.4",
    "eslint": "^3.18.0",
    "eslint-config-standard": "^7.1.0",
    "eslint-friendly-formatter": "^2.0.7",
    "eslint-plugin-html": "^2.0.1",
    "eslint-plugin-promise": "^3.5.0",
    "eslint-plugin-standard": "^2.0.1",
    "less": "^3.8.1",
    "wepy-compiler-babel": "^1.5.2",
    "wepy-compiler-less": "^1.3.10",
    "wepy-eslint": "^1.5.4",
    "wepy-plugin-uglifyjs": "^1.3.7"
  }
}

project.config.json

{
    "description": "larabbs weapp project",
    "setting": {
        "urlCheck": false,
        "es6": false,
        "postcss": false,
        "minified": false,
        "newFeature": true
    },
    "compileType": "miniprogram",
    "appid": "wx756787de07ac71b1",
    "projectname": "larabbs-weapp",
    "miniprogramRoot": "dist/",
    "condition": {}
}
@李山河
你看我吊吗啊
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。
你看我吊吗啊
最佳答案

wepy.config.js 这个文件不能自己随便改。。不懂这些东西的作用、机制、。。

4年前 评论
讨论数量: 2
你看我吊吗啊

还是没解决,今天详细查看,发现原先是post 的请求,全部变为get了,我在wepygithubissues发现 此问题 曾经出现过。

4年前 评论
你看我吊吗啊

wepy.config.js 这个文件不能自己随便改。。不懂这些东西的作用、机制、。。

4年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!