Uniapp實現微信小程序雲開發

開通雲開發

在這裏插入圖片描述
勾選小程序雲開發,按提示開通即可

修改項目配置文件

配置manifest.json這個文件中的mp-weixin字段,新增一個代表雲函數目錄的屬性:“cloudfunctionRoot”: “static/cloudfunctions/”,

"mp-weixin" : {
        "appid" : "wxd44da5e300b3e1a0",
		"cloudfunctionRoot": "static/cloudfunctions/",
        "setting" : {
            "urlCheck" : false
        },
        "usingComponents" : true,
        "permission" : {}
    }

參考:https://developers.weixin.qq.com/miniprogram/dev/wxcloud/guide/functions/getting-started.html

創建雲函數目錄

在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章