yangyin
2024-11-13 70b4dc4a2101ffd3e88395ee0adf22435748c3ff
登录错误根据后端提示返回文字内容
已修改2个文件
6 ■■■■ 文件已修改
project.private.config.json 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/api.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
project.private.config.json
@@ -1,7 +1,7 @@
{
  "projectname": "Wechart.V1.0",
  "setting": {
    "compileHotReLoad": false,
    "compileHotReLoad": true,
    "urlCheck": true
  },
  "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
utils/api.js
@@ -134,7 +134,7 @@
      // console.log(result);
      if (result.Code != 0) {
        wx.showToast({
          title: 'token获取失败,请重新登录',
          title: result.Message,
          icon: "none",
          duration: 2000
        })
@@ -143,7 +143,7 @@
      var return_data = result.Data;
      if (return_data.Status != 0) {
        wx.showToast({
          title: 'token获取失败,请重新登录',
          title: result.Message,
          icon: "none",
          duration: 2000
        })