收藏
回答

["tabBar"]["list"][0]["iconPath"] 不应该以 ' ' 开头?

message:Error: app.json: ["tabBar"]["list"][0]["iconPath"] 不应该以 ' ' 开头

appid: wx53b1dcef61be0761

openid: o6zAJs1Lk-8KWwmKi8lsCAsm7fiw

ideVersion: 1.05.2104192

osType: win32-x64

time: 2021-04-27 10:48:09


附源代码

{

   "pages":[ 

    "pages/index/index",

    "pages/student/student",

    "pages/user/user",

    "pages/teacher/teacher",

    "pages/administrator/administrator",

    "pages/psychologist/psychologist"

  ],


  "window":{

    "backgroundTextStyle":"light",

    "navigationBarBackgroundColor": "#fff",

    "navigationBarTitleText": "架起心桥",

    "navigationBarTextStyle":"black"

  },

 "tabBar": {

    "color":"",

    "selectedColor":"",

    "backgroundColor": "",

    "position": "bottom",

    "borderStyle": "black",

    "list":[

      {

        "pagePath": "pages/index/index",

        "text": "首页",

        "iconPath": " icons/home.png",

        "selectedIconPath": "icons/home-o.png"

      },

      {

        "pagePath": "pages/user/user",

        "text": "我的",

        "iconPath": " icons/me.png",

        "selectedIconPath": "icons/me-o.png"

      }

    ]

  },

  "style": "v2",

  "sitemapLocation": "sitemap.json"

}



回答关注问题邀请回答
收藏

2 个回答

  • xplee
    xplee
    2021-04-27

    每个iconPath的值都多了一个空格

    2021-04-27
    有用 4
    回复
  • aspire
    aspire
    2021-06-05

    f

    s


    太细节了!


    ta



    2021-06-05
    有用
    回复
登录 后发表内容