当前位置:网站首页>Background management of uniapp hot update

Background management of uniapp hot update

2022-06-24 08:42:00 diangedan

1 establish uni-admin project

 2 Right click on the uniCloud-[ Alibaba cloud : Cloud service space is not associated ]

 

 3 Run to the Chrome browser , Create administrator

 

Use HBuilderX Import plug-ins to   uniCloud admin

  1. find /uni_modules/uni-upgrade-center/uniCloud/cloudfunctions/upgrade-center, Right click to upload deployment

  2. find /uni_modules/uni-upgrade-center/uniCloud/database/db_init.json, Right click to initialize the database

     3. stay pages.json Add page path to

// This structure is similar to uniCloud admin Medium pages.json The structure is consistent 
"pages": [
        //  Cover  unicloud admin Of pages
        {
            "path": "uni_modules/uni-upgrade-center/pages/version/list",
            "style": {
                "navigationBarTitleText": " Version list "
            }
        }, {
            "path": "uni_modules/uni-upgrade-center/pages/version/add",
            "style": {
                "navigationBarTitleText": " New release "
            }
        }, {
            "path": "uni_modules/uni-upgrade-center/pages/version/detail",
            "style": {
                "navigationBarTitleText": " View version information "
            }
        }
]

     4. stay manifest.json -> Source view Add the following configuration

"networkTimeout":{
    "uploadFile":1200000    //ms,  If you don't configure , Uploading large files may time out 
}

Run the project to Chrome

原网站

版权声明
本文为[diangedan]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206240607264921.html